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

6D-Cluster: apply rspace_oversize to volume mask

parent bacdf5b0
No related branches found
No related tags found
No related merge requests found
......@@ -235,6 +235,12 @@ function [refor, estim_space_bbox_pix, estim_orient_bbox_rod] = gt6DCreateProjDa
volume_verts = cat(1, volume_verts, ...
bsxfun(@plus, grs(ii_g).fwd_sim.gv_verts, center_shift));
end
k = convhull(volume_verts);
volume_verts = volume_verts(k, :);
center_verts = max(volume_verts, [], 1) - min(volume_verts, [], 1);
volume_verts = bsxfun(@minus, volume_verts, center_verts);
volume_verts = bsxfun(@times, volume_verts, conf.ospace_oversize);
volume_verts = bsxfun(@plus, volume_verts, center_verts);
proj_bl_masks = gt6DSpreadProjectVertices2Det(refor, volume_verts, fwdsim_sel_refl(~inconvenient_etas), p, conf.det_index);
blobs = assign_masks(blobs, proj_bl_masks, sel_reflections, true);
......
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