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
% absorption volume - as well as reconstruction and segmentation of grain volumes
%
......@@ -108,7 +108,8 @@ if ~exist(absorption_mask,'file')
abs = load(absorption_volume, 'abs');
abs = abs.abs;
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);
end
else
......@@ -123,9 +124,12 @@ else
end
end
first = 1;
last = sample.phases{phaseID}.getNumberOfGrains();
if (~exist('first', 'var') || isempty(first))
first = 1;
end
if (~exist('last', 'var') || isempty(last))
last = sample.phases{phaseID}.getNumberOfGrains();
end
check = inputwdefault('Launch reconstruction? [y/n]', 'y');
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