Skip to content
Snippets Groups Projects
Commit 0a990728 authored by Andrew Cohen's avatar Andrew Cohen
Browse files

fill kernel holes on segreduce, built matlabpolldb

parent b9a3636c
Branches
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ if bEnsemble ...@@ -172,7 +172,7 @@ if bEnsemble
end end
tElapsed=toc; 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); ljsLog(sz,3);
if DRAW if DRAW
title([num2str(tElapsed,'%0.0f') 'seconds']); title([num2str(tElapsed,'%0.0f') 'seconds']);
......
...@@ -16,6 +16,7 @@ bwOut=bw; ...@@ -16,6 +16,7 @@ bwOut=bw;
nIter=pi*max(min_radius_pixels)/2; nIter=pi*max(min_radius_pixels)/2;
for nDilate=1:nIter for nDilate=1:nIter
bwKernels=bwOut&~bwLog; bwKernels=bwOut&~bwLog;
bwKernels=imfill(bwKernels,'holes');
bwKernels=Segment.aiAreaOpen(bwKernels,0.5*min_radius_pixels); bwKernels=Segment.aiAreaOpen(bwKernels,0.5*min_radius_pixels);
L=bwlabeln(bwKernels); L=bwlabeln(bwKernels);
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment