Thin wrapper around the fftw3 for computing inverse fourier transforms. More...
#include <Image/FourierEngine.H>
Public Member Functions | |
FourierInvEngine (const Dims &d) | |
Set up an engine for computing the inverse fft. | |
~FourierInvEngine () | |
Destructor. | |
Image< T > | ifft (const Image< std::complex< T > > &x) |
Compute the complex->real inverse fourier transform of x. |
Thin wrapper around the fftw3 for computing inverse fourier transforms.
Definition at line 92 of file FourierEngine.H.
FourierInvEngine< T >::FourierInvEngine | ( | const Dims & | d | ) | [inline] |
Set up an engine for computing the inverse fft.
Note that the dimensions passed here should be the dimensions of the expected OUTPUT array, not the dimensions of the input array.
Definition at line 345 of file FourierEngine.C.
FourierInvEngine< T >::~FourierInvEngine | ( | ) | [inline] |
Destructor.
Definition at line 379 of file FourierEngine.C.
Image< T > FourierInvEngine< T >::ifft | ( | const Image< std::complex< T > > & | x | ) | [inline] |
Compute the complex->real inverse fourier transform of x.
The input is expected to be in the format/size generated by FourierEngine::fft().
Definition at line 395 of file FourierEngine.C.
References ASSERT, Image< T >::getArrayPtr(), Dims::h(), NO_INIT, and Dims::w().
Referenced by addNoise(), addPowerNoise(), and SpectralResidualChannel::getOutput().