FourierTransform

asked 2013-05-18 12:39:18 -0500

residentelvio gravatar image

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.

edit retag flag offensive close merge delete