Skip to content
Snippets Groups Projects
Commit 7e1aa470 authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

small fixes

parent 98fec513
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,11 @@ if (~isempty(conf.grain_ids))
else
t=GtThreshold();
for i = 1 : numel(conf.grain_ids)
t.singleGrainAutoThreshold(phase_id, conf.grain_ids(i));
if sample.phases{phase_id}.getSelected(conf.grain_ids(i))
t.singleGrainAutoThreshold(phase_id, conf.grain_ids(i));
else
sprintf('skipping deselected grain %d\n',conf.grain_ids(i))
end
end
end
end
......
......@@ -45,7 +45,11 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox_rod] = gt6DCreateProjDa
for ii = 1 : numel(grains_list)
fprintf('Loading grain: ')
gr = gtLoadGrain(phase_id, grains_list(ii));
try
gr = gtLoadGrain(phase_id, grains_list(ii),'is_extended', true);
catch
gr = gtLoadGrain(phase_id, grains_list(ii));
end
fprintf('Done.\n')
refgr = gr;
......
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