Home:ALL Converter>Extract low-frequency coefficients of Fourier transformation

Extract low-frequency coefficients of Fourier transformation

Ask Time:2013-10-10T19:43:18         Author:Andrei CACIO

Json Formatter

I have applied the Fourier transformation on an image like so:

I = imread('img.jpg');
img = fftshift(I);
F = fft2(img);
magnitude = mat2gray(100*log(1+abs(fftshift(F))));    % Magnitude spectrum
phase = mat2gray( (angle(F)) );                       % Phase spectrum

Using the energy compaction property of the Discrete Fourier Transform how can I extract a 21x21 matrix of the low-frequency value coefficients of the Fourier transformation?

Thanks in advance!

Author:Andrei CACIO,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/19294868/extract-low-frequency-coefficients-of-fourier-transformation
yy