I want to plot magnitude and phase of the Fourier transform of an image in matlab. I implemented the tutorial I read in this link line by line but for magnitude, only a white screen is plotted.
My code:
I=imread('16.jpg');
fftA = fft2(double(I));
figure, imshow(abs(fftshift(fftA)));
title('Image FFT2 Magnitude');
figure, imshow(angle(fftshift(fftA)),[-pi pi]);
title('Image FFT2 Phase')
My original image is :
Where is the problem?