Commit b9137e5e authored by actb's avatar actb

Merge branch 'msLoG' of https://git-bioimage.coe.drexel.edu/bioimage/leverjs into msLoG

parents 9ef7268c 0a990728
......@@ -172,7 +172,7 @@ if bEnsemble
end
tElapsed=toc;
sz=sprintf('segmented frame %d found %d hulls, useCuda=%d, time=%f\n',t,length(Cells),USE_CUDA,tElapsed);
sz=sprintf('segmented frame %d found %d hulls, useCuda=%d, minRadius=%f time=%f\n',t,length(Cells),USE_CUDA,segParams.minimumRadius_um,tElapsed);
ljsLog(sz,3);
if DRAW
title([num2str(tElapsed,'%0.0f') 'seconds']);
......
......@@ -16,6 +16,7 @@ bwOut=bw;
nIter=pi*max(min_radius_pixels)/2;
for nDilate=1:nIter
bwKernels=bwOut&~bwLog;
bwKernels=imfill(bwKernels,'holes');
bwKernels=Segment.aiAreaOpen(bwKernels,0.5*min_radius_pixels);
L=bwlabeln(bwKernels);
......
......@@ -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