Thursday, October 25, 2012

Matlab Code for Image filtering from Gaussian Noise using Median and Wiener filter


clc;
clear all;
I= imread('liftingbody.png');
I2=imnoise(I,'gaussian');
subplot(2,2,1);

imshow(I);
title('Original Image');

subplot(2,2,2);
imshow(I2);
title('gaussian noise');

L= medfilt2(I2,[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 Gaussian Noise using Median and Wiener filter

No comments:

Post a Comment