Inheritance diagram for prapi::transforms::FFT< T, U >:
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.
|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)|
|Get the direction.|
|Get the points.|
|Matrix< Complex< T > >||getTransformedImage (const Matrix< U > &mat) throw (ImageTransformException&)|
|The fuction makes the FFT transform for the matrix given in parameter. |
The Constructor of FFT.
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.