2D FFTW Help

I am currently trying to calculate fft images via fftw_plan_dft_2d .

To use this function, I linearize the image data into an array and calling the function mentioned above (and described in detail below)

ftw_plan fftw_plan_dft_2d(int n0, int n1,
                            fftw_complex *in, fftw_complex *out,
                            int sign, unsigned flags);

The func function modifies a complex out out array with a size equal to the number of pixels in the original image.

Do you know that this is the correct way to calculate 2D FFT images? If so, what is the data inside? IE Where are the high and low frequencies in the array?

Thanks djs22

+3
source share
2 answers

2D 1D , 1D .

2D FFT 1D , , x, y, . x y, .

FFTW (), 2D- 2D, , .

+5

. 2 :

plan1 = fftw_plan_dft_2d(image->rows, image->cols, in, fft, FFTW_FORWARD, FFTW_ESTIMATE); 
plan2 = fftw_plan_dft_2d(image->rows, image->cols, fft, ifft, FFTW_BACKWARD, FFTW_ESTIMATE);

ifft.

, :)

0

All Articles