解:MATLAB程序如下:
A=imread('rice.tif');
imshow(A);
A2=fft2(A);
A2=fftshift(A2);
figure,imshow(log(abs(A2)+1),[0 10]) ;