|||
clear;
f=zeros(256,256);
f(117:137,124:130)=1;
figure(1);
imshow(f);
title('原始图像');
F=fft2(f);
F2=fftshift(abs(F));
figure(2);
x=1:256;y=1:256;
mesh(x,y,F2(x,y));
colormap jet;
colorbar;
title('Fourier 变换结果');
与 http://bbs.sciencenet.cn/home.php?mod=space&uid=287000&do=blog&id=509617 比较即知。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-26 11:30
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社