Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FourierTransform

Hi to all. I have to translate this 2 lines of code from Matlab to C:

filter=fftshift(filter);

//Y = fftshift(X) rearranges the outputs of fft, fft2, and fftn by moving the zero-frequency component to the center of the array. It is useful for visualizing a Fourier transform with the zero-frequency component in the middle of the spectrum.

rpad=ifft2(imfft.*filter);

//Y = ifft2(X) returns the two-dimensional inverse discrete Fourier transform (DFT) of X, computed with a fast Fourier transform (FFT) algorithm. The result Y is the same size as X.