您的位置:首页 > 其它

二维自适应维纳滤波对高斯噪声的滤除效果

2012-04-25 09:18 260 查看
function FuShiPengZhang
I=imread('C:\Users\user\Desktop\data\Gabor-5-80-0.5-0.5\2-5.jpg'); %读取图像 
J=imnoise(I,'gaussian',0,0.005); %加入均值为0,方差为0.005的高斯噪声 
K1=wiener2(J,[3 3]); %对加噪图像进行二维自适应维纳滤波 
K2=wiener2(J,[5 5]); %对加噪图像进行二维自适应维纳滤波 
K3=wiener2(J,[7 7]); %对加噪图像进行二维自适应维纳滤波 
K4=wiener2(J,[9 9]); %对加噪图像进行二维自适应维纳滤波 
subplot(2,3,1);
imshow(I); 
title('原始图像'); 
subplot(2,3,2);
imshow(J); 
title('加噪图像'); 
subplot(2,3,3);
imshow(K1); 
title('恢复图像1'); 
subplot(2,3,4);
imshow(K2); 
title('恢复图像2'); 
subplot(2,3,5);
imshow(K3); 
title('恢复图像3'); 
subplot(2,3,6);
imshow(K4); 
title('恢复图像3'); 
end


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: