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

6D-Twins-datastructures: added a few more fixes

parent 97e8ae13
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ function [samp_ors, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDat
ref_included = refgr_proj.included;
ref_selected = refgr_proj.selected;
if (conf.verbose > 1 || true)
if (conf.verbose > 1)
produce_matching_reflections_table(grs, conf, refl_matches, ref_ondet, ref_included)
end
......@@ -315,7 +315,8 @@ function [samp_ors, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDat
proj.centerpix = gr_center_pix;
proj.bl = blobs;
proj.stack = spots;
vol_size = bbox_size_pix + mean(bbox_size_pix) * 0.3;
vol_size = bbox_size_pix;
% vol_size = bbox_size_pix + mean(bbox_size_pix) * 0.3;
proj.vol_size_x = vol_size(2);
proj.vol_size_y = vol_size(1);
proj.vol_size_z = vol_size(3);
......@@ -358,7 +359,7 @@ function [samp_ors, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDat
drawnow();
end
if (conf.save)
if (conf.save > 0)
str_ids = sprintf('_%04d', grs_list);
grain_filename = fullfile(p.acq.dir, '4_grains', ...
sprintf('phase_%02d', phase_id), ...
......@@ -367,12 +368,14 @@ function [samp_ors, estim_space_bbox_pix, estim_orient_bbox] = gt6DCreateProjDat
save(grain_filename, 'samp_ors', '-v7.3');
fprintf('\b\b: Done.\n')
fprintf('Saving to sample.mat..')
sample = GtSample.loadFromFile();
sample.phases{phase_id}.clusters(end+1) = ...
GtPhase.makeCluster(grs_list, cat(1, samp_ors(:).R_vector), estim_space_bbox_pix, [], 1);
sample.saveToFile();
fprintf('\b\b: Done.\n')
if (conf.save == 1)
fprintf('Saving to sample.mat..')
sample = GtSample.loadFromFile();
sample.phases{phase_id}.clusters(end+1) = ...
GtPhase.makeCluster(grs_list, cat(1, samp_ors(:).R_vector), estim_space_bbox_pix, [], 1);
sample.saveToFile();
fprintf('\b\b: Done.\n')
end
end
end
......
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