Skip to content
Snippets Groups Projects
Commit dd0bc4a3 authored by Andrew King's avatar Andrew King
Browse files

Bug fix to twin volume assembly - sub volumes were erroneously shifted by 1


Signed-off-by: default avatarAndrew King <andrew.king@esrf.fr>
parent 726769c6
No related branches found
No related tags found
No related merge requests found
...@@ -581,7 +581,9 @@ classdef GtAssembleVol3D < handle ...@@ -581,7 +581,9 @@ classdef GtAssembleVol3D < handle
% Getting the intersecting volume of complete volume and % Getting the intersecting volume of complete volume and
% segmented volume % segmented volume
if ~isempty(vol) if ~isempty(vol)
[limsVolume, limsGrain] = gtGetVolsIntersectLimits(size(volume), size(vol), volBBox(1:3)); % the bbox extremes start from 1 - matlab coords.
% shift (argument 3) should start from zero!
[limsVolume, limsGrain] = gtGetVolsIntersectLimits(size(volume), size(vol), volBBox(1:3)-1);
else else
foutput{end+1,2} = sprintf('\nEmpty segmented volume for grainID %4d... Please threshold it again!', ii); foutput{end+1,2} = sprintf('\nEmpty segmented volume for grainID %4d... Please threshold it again!', ii);
continue continue
......
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