Commit b9a3636c authored by Andrew Cohen's avatar Andrew Cohen

thresholdImages use smaller nhood for 3d

parent 631d1db7
......@@ -32,7 +32,12 @@ T=adaptthresh(imLog,0.5,'NeighborhoodSize',nsz,'statistic','gaussian');
bwLog=imbinarize(imLog,T);
bwLog=Segment.aiAreaOpen(bwLog,2*min_radius_pixels);
nsz=4*floor(size(im)/16)+1;
if is3D(im)
% lower density (generally?) use smaller radius
nsz=2*floor(size(im)/16)+1;
else
nsz=4*floor(size(im)/16)+1;
end
T=adaptthresh(im,sensitivity,'NeighborhoodSize',nsz,'statistic','gaussian');
bw=imbinarize(im,T);
bw=Segment.aiAreaOpen(bw,min_radius_pixels);
......
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment