diplib/dft.h file

Declares an interface to a DFT function. See Transforms.

Contents

Classes

template<typename T>
class dip::DFT
An object that encapsulates the Discrete Fourier Transform (DFT).
template<typename T>
class dip::RDFT
An object that encapsulates the real-valued Discrete Fourier Transform (DFT).

Aliases

using dip::Option::DFTOptions = dip::detail::Options
Determines working mode for dip::DFT and dip::RDFT. Combines multiple dip::Option::DFTOption values,.

Enums

enum class dip::Option::DFTOption: uint8{ InPlace, TrashInput, Aligned }
Determines working mode for dip::DFT and dip::RDFT.

Functions

auto dip::GetOptimalDFTSize(dip::uint size0, bool larger = true, dip::uint maxFactor = 5) -> dip::uint
Returns a size equal or larger to size0 that is efficient for the DFT implementation. The value returned is a product of small primes.
auto dip::MaxFactor(bool complex = true) -> dip::uint
The maxFactor parameter for dip::GetOptimalDFTSize. complex determines whether the transform to be computed is complex-to-complex or not.

Variables

dip::uint const dip::maximumDFTSize
The largest size supported by dip::DFT and dip::FourierTransform. Is equal to 231-1 when using FFTW, 264-1 when using PocketFFT on a 64-bit system, or 232-1 when using PocketFFT on a 32-bit system.
bool const dip::usingFFTW
Is true if dip::DFT and dip::RDFT use the FFTW library, or false if they use PocketFFT.