% 读取图像文件 I = imread('cameraman.tif');

% 傅立叶变换 F = fft2(I);

% 零频率分量移位至图形中心 F_shift = fftshift(F);

% 傅立叶幅度谱 F_mag = abs(F_shift);

% 相位谱 F_phase = angle(F_shift);

% 显示图像和傅立叶变换结果 figure; subplot(2,2,1); imshow(I); title('Original Image'); subplot(2,2,2); imshow(log(1+F_mag),[]); title('Magnitude Spectrum'); subplot(2,2,3); imshow(F_phase,[]); title('Phase Spectrum'); subplot(2,2,4); imshow(ifft2(ifftshift(F_shift)),[]); title('Reconstructed Image');

MATLAB 图像处理:傅立叶变换、频谱分析与图像重建

原文地址: https://www.cveoy.top/t/topic/nXqX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录