48 static const double FFT_2_PI = 2.0*3.1415926535897932384626433832795288419716939937510;
51 static const double FFT_PI = 3.1415926535897932384626433832795288419716939937510;
54 static const double FFT_PI_HALF = 1.5707963267948966192313216916397644209858469968755;
68 std::complex<T2>*
fft(
unsigned int n,
const T1*
data);
110 std::complex<T2>*
dft(
unsigned int n, T1 *matrix);
135 std::complex<T2>*
ifft_cpp(
unsigned int n,
const T1* matrix);
171 std::complex<T2>*
idft(
unsigned int n, T1 *matrix);
ICLMath_IMP DynMatrix< std::complex< T2 > > & joinComplex(const DynMatrix< T1 > &real, const DynMatrix< T1 > &im, DynMatrix< std::complex< T2 > > &dst)
joins to matrices to one complex
undocument this line if you encounter any issues!
Definition: Any.h:37
ICLMath_IMP DynMatrix< T2 > & imagpart(const DynMatrix< std::complex< T1 > > &src, DynMatrix< T2 > &dst)
returns imaginary part complex matrix
#define ICLMath_API
Definition: CompatMacros.h:173
ICLMath_IMP DynMatrix< T2 > & magnitude(const DynMatrix< std::complex< T1 > > &src, DynMatrix< T2 > &dst)
returns the magnitude of complex matrix
ICLMath_IMP std::complex< T2 > * dft(unsigned int n, T1 *matrix)
1d dft computation
ICLMath_IMP DynMatrix< T > & continueMatrixToPowerOf2(const DynMatrix< T > &src, DynMatrix< T > &dst)
appends copies of sourcematrix beside and under it
Highly flexible and optimized matrix class implementation.
Definition: DynMatrix.h:81
ICLMath_IMP DynMatrix< T2 > & phase(const DynMatrix< std::complex< T1 > > &src, DynMatrix< T2 > &dst)
return phase of complexmatrix
ICLMath_IMP DynMatrix< std::complex< T2 > > & dft2D(DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2d dft computation
ICLMath_IMP DynMatrix< std::complex< T2 > > & fft2D_cpp(const DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2dfft computation (fallback)
ICLMath_IMP std::complex< T2 > * idft(unsigned int n, T1 *matrix)
1d idft computation
ICLMath_IMP DynMatrix< std::complex< T2 > > & ifft2D_cpp(const DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2d ifft computation (fallback)
ICLMath_IMP std::complex< T2 > * fft(unsigned int n, const T1 *data)
1dfft computation (fallback)
ICLMath_API int nextPowerOf2(int n)
Returns the next value greater then n to power of 2.
static const double FFT_2_PI
2*PI
Definition: FFTUtils.h:48
static const double FFT_PI_HALF
PI/2.
Definition: FFTUtils.h:54
ICLMath_IMP DynMatrix< std::complex< T2 > > & idft2D(DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2d idft computation
ICLMath_IMP DynMatrix< std::complex< T2 > > & fft2D(const DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2dfft computation
ICLMath_IMP void split_magnitude_phase(const DynMatrix< std::complex< T > > &src, DynMatrix< T > &mag, DynMatrix< T > &phase)
splits complexmatrix into magnitude and phase
ICLQt_API ImgROI data(ImgQ &r)
creates full ROI ROI-struct
ICLMath_IMP DynMatrix< T > & makeborder(const DynMatrix< T > &src, DynMatrix< T > &dst, T borderFill)
creates border with given value
ICLMath_IMP DynMatrix< T > & ifftshift(DynMatrix< T > &src, DynMatrix< T > &dst)
invers function to fftshift.
ICLMath_IMP DynMatrix< std::complex< T2 > > & ifft2D(const DynMatrix< T1 > &src, DynMatrix< std::complex< T2 > > &dst, DynMatrix< std::complex< T2 > > &buf)
2d ifft computation
ICLMath_IMP DynMatrix< T > & powerspectrum(const DynMatrix< std::complex< T > > &src, DynMatrix< T > &dst)
computes the powerspectrum
#define ICLMath_IMP
Definition: CompatMacros.h:172
ICLMath_IMP DynMatrix< T > & logpowerspectrum(const DynMatrix< std::complex< T > > &src, DynMatrix< T > &dst)
computes the logpowerspectrum
ICLMath_IMP DynMatrix< T2 > & realpart(const DynMatrix< std::complex< T1 > > &src, DynMatrix< T2 > &dst)
returns real part of complex matrix
ICLMath_IMP DynMatrix< T > & fftshift(DynMatrix< T > &src, DynMatrix< T > &dst)
shifts upper left corner to center.
static const double FFT_PI
PI.
Definition: FFTUtils.h:51
ICLMath_IMP void split_complex(const DynMatrix< std::complex< T > > &src, DynMatrix< T > &real, DynMatrix< T > &img)
split complexmatrix into realmatrix and imaginarymatrix
ICLMath_IMP std::complex< T2 > * ifft_cpp(unsigned int n, const T1 *matrix)
1d ifft computation
ICLMath_IMP DynMatrix< T > & mirrorOnCenter(const DynMatrix< T > &src, DynMatrix< T > &dst)
mirrors the sourcematrix
ICLMath_API int priorPowerOf2(int n)
Returns the prior value lower then n to power of 2.