a=imread(‘cameraman.tif’);
b=imnoise(a,’salt & pepper’);
c3=medfilt2(b,[3 3]);
c4= medfilt2(b,[5 5]);
subplot(2,2,1);imshow(a);
title(‘original image’);
subplot(2,2,2);imshow(b);
title(‘salt and pepper noise image’);
subplot(2,,3);imshow(uint8(c3));
title(‘3×3 median filter);
subplot(3,2,1);
imshow(uint8(c4));
title(‘5x5median filter);
b=imnoise(a,’salt & pepper’);
c3=medfilt2(b,[3 3]);
c4= medfilt2(b,[5 5]);
subplot(2,2,1);imshow(a);
title(‘original image’);
subplot(2,2,2);imshow(b);
title(‘salt and pepper noise image’);
subplot(2,,3);imshow(uint8(c3));
title(‘3×3 median filter);
subplot(3,2,1);
imshow(uint8(c4));
title(‘5x5median filter);
Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com