基于matlab的图像复原仿真GUI

1、内容简介


522-可以交流、咨询、答疑

2、内容说明


3、仿真分析

Image = im2double(rgb2gray(imread( 'flower.jpg')));
[n,m] = size(Image);
LEN = 21; THETA = 11;
PSF= fspecial( 'motion', LEN, THETA);
BlurredI = conv2(PSF, Image);
figure,imshow(BlurredI) ,title('运动模糊图像') ;
[nh, mh] = size(PSF) ;
n=n+ nh-1; m=m + mh- 1;
noise = imnoise( zeros(n, m),'salt & pepper', 0.001); 
BlurandnoiseI =BlurredI + noise;
figure,imshow(BlurandnoiseI), title('运动模糊加噪声图像');
h1 = zeros(n,m);
h1 (1:nh, 1: mh) = PSF;
H= fftshift(fft2(h1));
K= sum( noise(:).^2)/sum( Image(:).^2) ;
M= (1./(abs(H).^2 +K) ).^0.5;
G=fftshift(fft2(BlurandnoiseI));
f =ifft2(ifftshift(G.*M));
result = f(1:n- nh+ 1, 1:m- mh+1);
figure, imshow(abs(result)),title( '等功率谱滤波复原图像') ;

 

 

 

 

 

 

 

 

 

 


4、参考论文

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值