STIRA  0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
stira::fouriertools::FFTCalculator Class Referenceabstract

Parent class to compute the Fourier transforms based on several libraries Survey of FFT implementations: http://www.jjj.de/fft/fftpage.html Child classes specifically offer interface to. More...

#include <FFTCalculator.h>

Inheritance diagram for stira::fouriertools::FFTCalculator:
stira::fouriertools::FFTWCalculator stira::fouriertools::KISSFFTCalculator

Public Member Functions

 FFTCalculator (ArrayGrid< std::complex< double > > *pComplexGrid)
 construct an FFT calculator initialized with and FFTBand More...
 
 FFTCalculator ()
 construct an FFT calculator; not initialized
 
virtual ~FFTCalculator ()
 destructor
 
virtual void ApplyForwardTransform ()=0
 Computes the forward FFT.
 
virtual void ApplyInverseTransform ()=0
 Computes the inverse FFT.
 
void SwitchQuadrants ()
 Switches the four quadrants by mirroring them around the center of the image As source image, the image given at construction time is used.
 
void SwitchQuadrants (ArrayGrid< std::complex< double > > *pGridIn)
 Switches the four quadrants by mirroring them around the center of the image. More...
 

Protected Member Functions

virtual bool CreateLibData (ArrayGrid< std::complex< double > > *pGridin)=0
 help method to create the intermediate data structures for the underlying library
 
virtual bool CleanLibData ()=0
 help method to clean the intermediate input data structures for the underlying library
 
virtual void WriteResultInFFTBand ()=0
 Converts the KISS data structure with the result back to an FFTBand.
 

Protected Attributes

ArrayGrid< std::complex< double > > * mpComplexGrid
 Grid with the complex data.
 
int mWidth
 width of the data
 
int mHeight
 height of the data
 

Detailed Description

Parent class to compute the Fourier transforms based on several libraries Survey of FFT implementations: http://www.jjj.de/fft/fftpage.html Child classes specifically offer interface to.

Constructor & Destructor Documentation

stira::fouriertools::FFTCalculator::FFTCalculator ( ArrayGrid< std::complex< double > > *  pComplexGrid)

construct an FFT calculator initialized with and FFTBand

Parameters
pComplexGridpointer to an ArrayGrid of complex values

Member Function Documentation

void stira::fouriertools::FFTCalculator::SwitchQuadrants ( ArrayGrid< std::complex< double > > *  pGridIn)

Switches the four quadrants by mirroring them around the center of the image.

Parameters
pGridInthe grid of which the quadrants are to be switched (object itself is altered; no new object created)

References stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::SetValue().


The documentation for this class was generated from the following files: