f=imread('106_7.tif');
f=im2double(f);
[r c]=size(f);%设置矩阵的行列数
h=fspecial('gaussian',[r c],0.5);
g=imfilter(f,h,'circular');
a=0.1;
b=0.000000000001;
n=a+b*randn(r,c);
g=g+n;
F=fft2(f);
G=fft2(g);
H=psf2otf(h);
N=fft2(n);
H2=conj(H).*H;
N2=conj(N).*N;
F2=conj(F).*F;
NF=N2./F2;
huv=H2./(H2+NF);
tuv=(1./(H+eps)).*huv;
RA=tuv.*G;
ra=real(ifft2(RA));
MN=sum(sum(N2));
MF=sum(sum(F2));
sr=MN/MF;
huv=H2./(H2+sr);
tuv=(1./(H+eps)).*huv;
RC=tuv.*G;
rc=real(ifft2(RC));
figure,imshow(f);title('原始图像');
figure,imshow(rc);title('降噪图像')
大ç¥ï¼è¿ä¸ªç¨åºéä¸ï¼
追çä½ çåªå£°æ¹å·®å¤ªå°äºï¼çä¸åºå äºåªå£°çãç¨åºå¤§è´éå§ï¼ç¨äºä¸¤ä¸ªå»åªå£°çåæ³ï¼å¾å°äºä¸¤å¹ å»åªå¾åï¼ä½å»åªææä¸ä¸å®å¥½ã