$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::transform::fft< T, internal::fft_cplx > Class Template Reference

#include <mln/transform/fft.hh>

Public Member Functions

 fft (const image2d< std::complex< T > > &original_im)
image2d< std::complex< T > > transform ()
template<class R >
image2d< std::complex< R > > transform_inv ()
image2d< std::complex< T > > transform_inv ()
const image2d< std::complex< T > > & transformed_image () const
image2d< std::complex< T > > & transformed_image ()
template<class R >
image2d< R > transformed_image_clipped_magn (double clip, bool ordered=true) const
image2d< Ttransformed_image_clipped_magn (double clip, bool ordered=true) const
template<class R >
image2d< R > transformed_image_clipped_magn (bool ordered=true) const
image2d< Ttransformed_image_clipped_magn (bool ordered=true) const
template<class R >
image2d< R > transformed_image_log_magn (double a, double b, bool ordered=true) const
image2d< Ttransformed_image_log_magn (double a, double b, bool ordered=true) const
template<class R >
image2d< R > transformed_image_log_magn (bool ordered=true) const
image2d< Ttransformed_image_log_magn (bool ordered=true) const
template<class R >
image2d< R > transformed_image_magn (bool ordered=true) const
image2d< Ttransformed_image_magn (bool ordered=true) const

Protected Attributes

fft_trait< T >::fftw_input * in
std::complex< T > * out
fftw_plan p
fftw_plan p_inv
image2d< std::complex< T > > trans_im

Detailed Description

template<class T>
class mln::transform::fft< T, internal::fft_cplx >

FFT engine (specialization for images of complex values).

Template Parameters
TData type.

Definition at line 273 of file fft.hh.

Constructor & Destructor Documentation

template<class T >
mln::transform::fft< T, internal::fft_cplx >::fft ( const image2d< std::complex< T > > &  original_im)

Constructor.

Initialization of data for the computation of the FFT.

Parameters
original_imImage to process.

Member Function Documentation

template<class T >
image2d< std::complex<T> > mln::transform::fft< T, internal::fft_cplx >::transform ( )

Compute and return the transform (as a complex image).

template<class T >
template<class R >
image2d< std::complex<R> > mln::transform::fft< T, internal::fft_cplx >::transform_inv ( )

Compute and return the inverse transform (as a complex image).

Template Parameters
RComponent type of the value type of the output image.
template<class T >
image2d< std::complex<T> > mln::transform::fft< T, internal::fft_cplx >::transform_inv ( )

Compute and return the inverse transform of the FFT.

template<class T >
const image2d< std::complex<T> >& mln::internal::fft< T >::transformed_image ( ) const
inherited

Accessor to transformed image (const version).

template<class T >
image2d< std::complex<T> >& mln::internal::fft< T >::transformed_image ( )
inherited

Accessor to transformed image (non const version).

template<class T >
template<class R >
image2d<R> mln::internal::fft< T >::transformed_image_clipped_magn ( double  clip,
bool  ordered = true 
) const
inherited

Accessor to the transformed image (clipped magnitude).

For each point p of the transformed image T, an image containing a clipped value of |T[p]| is returned.

Template Parameters
RValue type of the resulting image.
Parameters
clipValue used for clipping.
orderedKind of traversal.
template<class T >
image2d<T> mln::internal::fft< T >::transformed_image_clipped_magn ( double  clip,
bool  ordered = true 
) const
inherited

Accessor to the transformed image (clipped magnitude).

For each point p of the transformed image T, an image containing a clipped value of |T[p]| is returned.

Parameters
clipValue used for clipping.
orderedKind of traversal.
template<class T >
template<class R >
image2d<R> mln::internal::fft< T >::transformed_image_clipped_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (clipped magnitude).

For each point p of the transformed image T, an image containing a clipped value of |T[p]| is returned.

Template Parameters
RValue type of the resulting image.
Parameters
orderedKind of traversal.
template<class T >
image2d<T> mln::internal::fft< T >::transformed_image_clipped_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (clipped magnitude).

For each point p of the transformed image T, an image containing a clipped value of |T[p]| is returned.

Parameters
orderedKind of traversal.
template<class T >
template<class R >
image2d<R> mln::internal::fft< T >::transformed_image_log_magn ( double  a,
double  b,
bool  ordered = true 
) const
inherited

Accessor to the transformed image (log of the magnitude).

For each point p of the transformed image T, an image containing a log value of |T[p]| translated in the interval [a, b].

Template Parameters
RValue type of the resulting image.
Parameters
aLower bound.
bUpper bound.
orderedKind of traversal.
template<class T >
image2d<T> mln::internal::fft< T >::transformed_image_log_magn ( double  a,
double  b,
bool  ordered = true 
) const
inherited

Accessor to the transformed image (log of the magnitude).

For each point p of the transformed image T, an image containing a log value of |T[p]| translated in the interval [a, b].

Parameters
aLower bound.
bUpper bound.
orderedKind of traversal.
template<class T >
template<class R >
image2d<R> mln::internal::fft< T >::transformed_image_log_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (log of the magnitude).

For each point p of the transformed image T, an image containing a log value of |T[p]| translated in the interval [1, 100].

Template Parameters
RValue type of the resulting image.
Parameters
orderedKind of traversal.
template<class T >
image2d<T> mln::internal::fft< T >::transformed_image_log_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (log of the magnitude).

For each point p of the transformed image T, an image containing a log value of |T[p]| translated in the interval [1, 100].

Parameters
orderedKind of traversal.
template<class T >
template<class R >
image2d<R> mln::internal::fft< T >::transformed_image_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (magnitude).

For each point p of the transformed image T, an image containing |T[p]| is returned.

Template Parameters
RValue type of the resulting image.
Parameters
orderedKind of traversal.
template<class T >
image2d<T> mln::internal::fft< T >::transformed_image_magn ( bool  ordered = true) const
inherited

Accessor to the transformed image (magnitude).

For each point p of the transformed image T, an image containing |T[p]| is returned.

Parameters
orderedKind of traversal.

Member Data Documentation

template<class T >
fft_trait<T>::fftw_input* mln::internal::fft< T >::in
protectedinherited

Input image (used internally by FFTW).

Definition at line 210 of file fft.hh.

template<class T >
std::complex<T>* mln::internal::fft< T >::out
protectedinherited

Output (complex) image used internally by FFTW).

Definition at line 212 of file fft.hh.

template<class T >
fftw_plan mln::internal::fft< T >::p
protectedinherited

(Forward) plan (command to be executed by FFTW).

Definition at line 214 of file fft.hh.

template<class T >
fftw_plan mln::internal::fft< T >::p_inv
protectedinherited

Inverse (backward) plan (command to be executed by FFTW).

Definition at line 216 of file fft.hh.

template<class T >
image2d< std::complex<T> > mln::internal::fft< T >::trans_im
protectedinherited

Transformed image (``exported'' Milena image accessible through accessors).

Definition at line 219 of file fft.hh.