how to filter the noise in my image correctly?

2 views (last 30 days)
Hello, everyone. I meet some problems about how to use filter correctly.
if true
I=imread('eight.tif');
subplot(1,4,1);
imshow(I,[]);
subplot(1,4,2);
Noise=imnoise(I,'salt & pepper',0.025);
imshow(Noise,[]);
xlabel('带噪声的图像');
subplot(1,4,3);
h=fspecial('average',3);
Area=imfilter(Noise,h,'replicate');
imshow(Area,[]);
end
Firstly, i add some noise and then I want to filter this noise, but the third image still exists some noise. So what can I do to avoid this and what's reasons for that ? Thanks a lot. Hang

Accepted Answer

Image Analyst
Image Analyst on 19 Sep 2017

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!