您的位置:首页 > 其它

数字图像处理之一傅立叶变换

2016-05-24 21:00 218 查看
clear all;
imgrgb = imread('D:/car.jpg');
imshow( imgrgb);
X = rgb2gray(imgrgb);
A=fft2(double(X));        %傅里叶变换
ifcoef=ifft2(A);
temp1=log(1+abs(A));
spectrum=fftshift(A);      %使图像对称
temp2=log(1+abs(spectrum));
figure
subplot(2,2,1) ,imshow(X),title('Source image');
subplot(2,2,2) ,imshow(temp1,[]),title('FFT image');
subplot(2,2,3) ,imshow(temp2,[]),title('  Shift FFT image');
subplot(2,2,4), imshow(ifcoef,[]),title('  IFFT image');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: