Commit 3ca99164 authored by actb's avatar actb

ljsThreshold

parent e40d15b8
function bw=ljsThreshold(im,min_radius_pixels,min_area_pixels)
imOut=0*im;
for i=1:5
imf=HIP.Gaussian(im,[floor(size(im)/(128/2^(i)))+1,0],1,[]);
% imx=imf;
bw=(im - 1*(imf)>0);
imOut=imOut+bw;
end
se=strel('square',ceil(min_radius_pixels));
imo=imopen(imOut,se);
bw=logical(imo>0);
bw=bwareaopen(bw,min_area_pixels);
\ No newline at end of file
......@@ -10,7 +10,7 @@ nDimension=length(size(bw));
if is3D(bw)
minKernelArea=ceil(min_area_pixels/2); %
else
minKernelArea=ceil(min_area_pixels/2); %
minKernelArea=ceil(min_area_pixels/4); %
end
if is3D(bw)
......
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