clc;
clear all;
close all;
I = imread('rice.png');
I2=imnoise(I,'salt&pepper');
subplot(2,2,1);
imshow(I);
title('Original image');
subplot(2,2,2);
imshow(I2);
title('Salt & pepper Noise');
L = medfilt2(I,[3 3]);
subplot(2,2,3);
imshow(L);
title('Median filter');
j=wiener2(I2);
subplot(2,2,4);
imshow(j);
title('Wiener filter');
clear all;
close all;
I = imread('rice.png');
I2=imnoise(I,'salt&pepper');
subplot(2,2,1);
imshow(I);
title('Original image');
subplot(2,2,2);
imshow(I2);
title('Salt & pepper Noise');
L = medfilt2(I,[3 3]);
subplot(2,2,3);
imshow(L);
title('Median filter');
j=wiener2(I2);
subplot(2,2,4);
imshow(j);
title('Wiener filter');
Image filtering from Salt and Pepper Noise using Median and Wiener filter |
No comments:
Post a Comment