Skip to content
Snippets Groups Projects
Commit f94076b4 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

gtSetupReconstruction: added possibility to only reconstruct a set of grains

parent aa5871d8
No related branches found
No related tags found
No related merge requests found
function gtSetupReconstruction(phaseID) function gtSetupReconstruction(phaseID, first, last)
% GTSETUPRECONSTRUCTION Simple helper function to launch reconstruction and segmentation of % GTSETUPRECONSTRUCTION Simple helper function to launch reconstruction and segmentation of
% absorption volume - as well as reconstruction and segmentation of grain volumes % absorption volume - as well as reconstruction and segmentation of grain volumes
% %
...@@ -108,7 +108,8 @@ if ~exist(absorption_mask,'file') ...@@ -108,7 +108,8 @@ if ~exist(absorption_mask,'file')
abs = load(absorption_volume, 'abs'); abs = load(absorption_volume, 'abs');
abs = abs.abs; abs = abs.abs;
end end
disp('Please create file volume_mask.mat from absorption volume (right click in the volume to select a seed point and then press ''Segment'')'); disp([ 'Please create file volume_mask.mat from absorption volume ' ...
'(right click in the volume to select a seed point and then press ''Segment'')' ]);
GtGuiThresholdVolume(abs); GtGuiThresholdVolume(abs);
end end
else else
...@@ -123,9 +124,12 @@ else ...@@ -123,9 +124,12 @@ else
end end
end end
if (~exist('first', 'var') || isempty(first))
first = 1; first = 1;
last = sample.phases{phaseID}.getNumberOfGrains(); end
if (~exist('last', 'var') || isempty(last))
last = sample.phases{phaseID}.getNumberOfGrains();
end
check = inputwdefault('Launch reconstruction? [y/n]', 'y'); check = inputwdefault('Launch reconstruction? [y/n]', 'y');
rec_on_OAR = false; rec_on_OAR = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment