用deconvwnr作图像恢复问题请教
用deconvwnr作图像恢复已知高斯,出现如下问题:做图像恢复,已知图像已经用gaussian low pass filter 处理了,size256, sigama 40,并且Thefilter was re-scaled such that its maximum value was equal to1,现在想deblur,编了个小程序,但恢复的效果很差。。。不知道为什么?
http://www.ilovematlab.cn/images/Picnicker/attachimg.gif原图像 http://www.ilovematlab.cn/attachments/day_080212/20080212_a397a3506be4d5ec3beau0iFRwZFAsDa.bmp
源程序:
A=imread(inputfile);
PSF = fspecial('Gaussian', ,40);
%PSF=PSF/(max(max(PSF)));
wnr1 = deconvwnr(A,PSF);
figure;
subplot(1,2,1);imshow(A);
subplot(1,2,2);imshow(wnr1,[]);
[ 本帖最后由 eight 于 2008-2-12 23:20 编辑 ]
页:
[1]