I am integrating a Python routine into C++ code.
There is the computation of the fft 2D of some real matrix, using in Python
F_BLK=np.fft.fft2(blk)
F_BLK
is a complex 512*24 matrix, with coefficients complex with real and imag part with order of magnitude 10e5.
When I compute the fft2 of the matrix in C++ i get a complex matrix with complex coefficients with real part with order of magnitude 10e6 and with null imaginary part.
- What does it mean if the fft2 has got null imaginary part ?
- What are possible sources for such wrong results ?
- Would you recommend one library in C++ for computing fft2 ?