FourierEngine.H File Reference

#include "Image/Image.H"
#include <complex>
#include <fftw3.h>
Include dependency graph for FourierEngine.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FourierEngine< T >
 Thin wrapper around the fftw3 library for the discrete fourier transform. More...
class  FourierInvEngine< T >
 Thin wrapper around the fftw3 for computing inverse fourier transforms. More...

Typedefs

typedef std::complex< double > complexd
typedef std::complex< float > complexf

Functions

template<class T >
Image< T > magnitude (const Image< std::complex< T > > &img)
 Complex magnitude.
template<class T >
Image< T > logmagnitude (const Image< std::complex< T > > &img)
 Logarithm of complex magnitude.
template<class T >
Image< T > phase (const Image< std::complex< T > > &img)
 Compute the complex phase of the fourier result.
template<class T >
Image< T > cartesian (const Image< T > &in, const Dims &dims)
 Morph a fourier result image from polar to cartesian coordinates.

Detailed Description

Thin wrapper around the fftw3 library

Definition in file FourierEngine.H.


Function Documentation

template<class T >
Image<T> cartesian ( const Image< T > &  in,
const Dims dims 
) [inline]

Morph a fourier result image from polar to cartesian coordinates.

Definition at line 507 of file FourierEngine.C.

References Image< T >::coordsOk(), Image< T >::getHeight(), Image< T >::getSize(), Image< T >::getWidth(), Dims::h(), sqrt(), Dims::w(), and ZEROS.

template<class T >
Image<T> logmagnitude ( const Image< std::complex< T > > &  img  )  [inline]

Logarithm of complex magnitude.

Definition at line 466 of file FourierEngine.C.

References abs(), log(), min(), and NO_INIT.

Referenced by SpectralResidualChannel::getOutput().

template<class T >
Image<T> magnitude ( const Image< std::complex< T > > &  img  )  [inline]

Complex magnitude.

Definition at line 447 of file FourierEngine.C.

References abs(), and NO_INIT.

Referenced by lobot::TTIEstimator::compute_distance(), and PlotBuffer::SimTimeToSI().

template<class T >
Image<T> phase ( const Image< std::complex< T > > &  img  )  [inline]

Compute the complex phase of the fourier result.

Definition at line 488 of file FourierEngine.C.

References NO_INIT.

Referenced by StereoChannel::buildSubChans(), and SpectralResidualChannel::getOutput().

Generated on Sun May 8 08:12:41 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3