Commit 838a7c0c authored by actb's avatar actb

phase radii and mask handling

parent 0caec66d
......@@ -10,7 +10,7 @@ nDimension=length(size(bw));
if is3D(bw)
minKernelArea=ceil(min_area_pixels/2); %
else
minKernelArea=9; %floor(min_area_pixels/4)+1;
minKernelArea=ceil(min_area_pixels/2); %
end
if is3D(bw)
......
......@@ -36,13 +36,14 @@ if segParams.isPhase
if segParams.isPhase>0
bw=imcomplement(bw);
end
bw=imopen(bw,se);
% bw=imopen(bw,se);
bw=imclose(bw,se2);
if true==segParams.wellRadius
bwMask=imbinarize(medianMask,adaptthresh(medianMask,'statistic','gaussian'));
seMask=strel('disk',ceil(2*min_radius_pixels));
bwMask=imdilate(bwMask,seMask);
bwMask=imdilate(bwMask,se2);
bw=bw&~bwMask;
bwMask=imdilate(bwMask,seMask);
bwLog=bwLog&~bwMask;
end
bw=imfill(bw,'holes');
......
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