Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::transforms::FFT< T, U > Class Template Reference

#include <FFT.h>

Inheritance diagram for prapi::transforms::FFT< T, U >:

prapi::ImageTransform< Complex< T >, U > List of all members.

Detailed Description

template<class T, class U>
class prapi::transforms::FFT< T, U >

This class includes FastFourierTransform algoritms for 2D transforms.

This FFT class includes the high-speed radix-4 fast Fourier transform and basic fft (which calculates the evend and odds separately). If its possible to use radix4 Fourier transform it will be used otherwise the slower basic fft is used. If wanted to use fast Radix4 transform the size of the matrix must be power of 2 (or the points of transform) and the minimum number of points has to be 4.


Public Methods

 FFT (Direction direction=FORWARD, int pointsInRow=-1, int pointsInCol=-1)
 The Constructor of FFT.

void setDirection (Direction dir)
 Set the direction.

void setPointsInRow (int points)
 Set the points.

void setPointsInColumn (int points)
Direction getDirection ()
 Get the direction.

int getPointsInRow ()
 Get the points.

int getPointsInColumn ()
Matrix< Complex< T > > getTransformedImage (const Matrix< U > &mat) throw (ImageTransformException&)
 The fuction makes the FFT transform for the matrix given in parameter.


Constructor & Destructor Documentation

template<class T, class U>
prapi::transforms::FFT< T, U >::FFT Direction    direction = FORWARD,
int    pointsInRow = -1,
int    pointsInCol = -1
[inline]
 

The Constructor of FFT.

Parameters:
direction  The direction of transform forward / reversed.


Member Function Documentation

template<class T, class U>
Matrix< Complex< T > > prapi::transforms::FFT< T, U >::getTransformedImage const Matrix< U > &    mat throw (ImageTransformException&)
 

The fuction makes the FFT transform for the matrix given in parameter.

If Matrix is nsmaller than points the zeros will be added to borders. And if the matrix is bigger than points the matrix will be truncated.

Parameters:
mat  The Matrix wanted to transform.
Exceptions:
ImageTransformException  if the pointsInRow/pointsInCol is not dividible for 2.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.