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

Don't take a bigger segmentation stack than we need for a small data set

Signed-off-by: Andrew King <@esrf.fr>
parent c41aef1b
No related branches found
No related tags found
No related merge requests found
...@@ -163,10 +163,14 @@ else ...@@ -163,10 +163,14 @@ else
stack.totproj = parameters.acq.nproj; stack.totproj = parameters.acq.nproj;
end end
% don't take more than we need
parameters.seg.segmentation_stack_size = ...
min((parameters.acq.nproj+parameters.seg.maxblobsize(3))*2,...
parameters.seg.segmentation_stack_size)
% read in the volume to work on % read in the volume to work on
% check that the size makes sense % check that the size makes sense
stack.pad = parameters.seg.maxblobsize(3); stack.pad = parameters.seg.maxblobsize(3);
stack.sizeZ = parameters.seg.segmentation_stack_size; stack.sizeZ = parameters.seg.segmentation_stack_size;
fprintf('Using %d images in memory (from parameters.seg)\n\n', stack.sizeZ) fprintf('Using %d images in memory (from parameters.seg)\n\n', stack.sizeZ)
......
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