Skip to content
Snippets Groups Projects
Commit 7dc96b10 authored by actb's avatar actb
Browse files

fill holes in aiAreaOpen

parent 85d70897
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,8 @@ if ~is3D(bw)
maskRadius(3)=0;
end
ee=HIP.MakeEllipsoidMask(maskRadius);
bwSeeds=imerode(bw,ee);
bwh=imfill(bw,'holes');
bwSeeds=imerode(bwh,ee);
% bw=imreconstruct(bwSeeds,bw);
% faster by 2x compared to imreconstruct...
idx=find(bwSeeds);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment