From: ahmad yahya on
hell if i have did image segmentation and i have some noise out side the shape so how can i clean this noise which function can use thanks for help
From: us on
"ahmad yahya" <ahyda99(a)hotmail.com> wrote in message <hpjlhl$hbs$1(a)fred.mathworks.com>...
> hell if i have did image segmentation and i have some noise out side the shape so how can i clean this noise which function can use thanks for help

what have YOU done so far to solve YOUR particular problem...

us
From: ImageAnalyst on
On Apr 8, 12:20 am, "ahmad yahya" <ahyd...(a)hotmail.com> wrote:
> hell if i have did image segmentation and i have some noise out side the shape so how can i clean this noise which function can use thanks for help

--------------------------
Well hell . . . I'd probably use bwareaopen on your segmented (binary)
image, what about you? Median filter maybe?
From: PinkLab on
@Image, any idea on how to build median filter

for n = 1+r:N-r
for m = 1+r:M-r
% Extract a window of size (2r+1)x(2r+1) around (m,n)
w = x(m+(-r:r),n+(-r:r));

% ... write the filter here ...


y(m,n) = result;
end
end
From: ImageAnalyst on
On Apr 8, 6:29 am, "PinkLab " <pink...(a)pinklab.com> wrote:
> @Image, any idea on how to build median filter
-------------------------------------------------------------------
Yes, but why would I when MATLAB has the built-in medfilt2() function?