H(u,v)=exp(-k*(((u-m/2)^2+(v-n/2)^2)^(5/6)))是什么意思matlab的代码 clear;I=imread('rice.tif');figure;subplot(2,2,1);imshow(I);title('原图像');[m,n]=size(I);F=fftshift(fft2(I));k=0.0025;for u=1:m for v=1:nH(u,v)=exp((-k)*(((u-m/2)^2+(v-n/2)
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 13:47:28
H(u,v)=exp(-k*(((u-m/2)^2+(v-n/2)^2)^(5/6)))是什么意思matlab的代码 clear;I=imread('rice.tif');figure;subplot(2,2,1);imshow(I);title('原图像');[m,n]=size(I);F=fftshift(fft2(I));k=0.0025;for u=1:m for v=1:nH(u,v)=exp((-k)*(((u-m/2)^2+(v-n/2)
H(u,v)=exp(-k*(((u-m/2)^2+(v-n/2)^2)^(5/6)))是什么意思
matlab的代码
clear;
I=imread('rice.tif');
figure;
subplot(2,2,1);imshow(I);title('原图像');
[m,n]=size(I);
F=fftshift(fft2(I));
k=0.0025;
for u=1:m
for v=1:n
H(u,v)=exp((-k)*(((u-m/2)^2+(v-n/2)^2)^(5/6)));
end
end
G=F.*H;
I0=real(ifft2(fftshift(G)));
I1=imnoise(uint8(I0),'gaussian',0,0.001)
subplot(2,2,2);imshow(uint8(I1));title('模糊退化且添加高斯噪声的图像');
F0=fftshift(fft2(I1));
F1=F0./H;
I2=ifft2(fftshift(F1));
subplot(2,2,3);imshow(uint8(I2));title('全逆滤波复原图');
K=0.1;
for u=1:m
for v=1:n
H(u,v)=exp(-k*(((u-m/2)^2+(v-n/2)^2)^(5/6)));
H0(u,v)=(abs(H(u,v)))^2;
H1(u,v)=H0(u,v)/(H(u,v)*(H0(u,v)+K));
end
end
F2=H1.*F0;
I3=ifft2(fftshift(F2));
subplot(2,2,4);imshow(uint8(I3));title('维纳滤波复原图');
H(u,v)=exp(-k*(((u-m/2)^2+(v-n/2)^2)^(5/6)))是什么意思matlab的代码 clear;I=imread('rice.tif');figure;subplot(2,2,1);imshow(I);title('原图像');[m,n]=size(I);F=fftshift(fft2(I));k=0.0025;for u=1:m for v=1:nH(u,v)=exp((-k)*(((u-m/2)^2+(v-n/2)
是一个二元函数,变量是u、v.
其中exp表示指数函数,exp(x)就是以e为底x为指数的指数函数.
u
k