资源说明::i1=imread('C:\Users\Administrator\Desktop\图像处理\T1.JPG');
i1=double(i1)/255;
figure(1)
imshow(i1);title('原图');
i2=fft2(i1);
figure(2)
imshow(i2);title('傅里叶变换后');
if size(i1, 3) > 1
G = im2double(rgb2gray(i1));
else
G = im2double(i1);
end
im3= fftshift(fft2(G));
i3=log10(abs(im3)+1);
figure(3)
imshow(i3);title('频移对数变换后');
i4=ifft2(i2);
figure(4)
imshow(i4);title('傅里叶逆变换后');
imwrite(i2,'fft.jpg');
imwrite(i3,'fftshift.jpg');
imwrite(i4,'ifft.jpg');
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。