FourierEngine.C File Reference

#include "Image/FourierEngine.H"
#include "rutz/trace.h"
Include dependency graph for FourierEngine.C:

Go to the source code of this file.

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.
template Image< float > magnitude (const Image< std::complex< float > > &)
template Image< float > logmagnitude (const Image< std::complex< float > > &)
template Image< float > phase (const Image< std::complex< float > > &)
template Image< float > cartesian (const Image< float > &, const Dims &)
template Image< double > magnitude (const Image< std::complex< double > > &)
template Image< double > logmagnitude (const Image< std::complex< double > > &)
template Image< double > phase (const Image< std::complex< double > > &)
template Image< double > cartesian (const Image< double > &, const Dims &)

Detailed Description

Thin wrapper around the fftw3 library

Definition in file FourierEngine.C.


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:42:41 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3