BALL
1.4.1
|
#include <BALL/MATHS/FFT2D.h>
A class to perform Fast Fourier Transforms and inverse Fast Fourier Transforms on regularly spaced two dimensional data.
typedef std::complex<typename ComplexTraits::ComplexPrecision> BALL::TFFT2D< ComplexTraits >::Complex |
typedef TRegularData2D<std::complex<typename ComplexTraits::ComplexPrecision> > BALL::TFFT2D< ComplexTraits >::ComplexVector |
typedef TRegularData2D<std::complex<typename ComplexTraits::ComplexPrecision> >::IndexType BALL::TFFT2D< ComplexTraits >::IndexType |
BALL::TFFT2D< ComplexTraits >::TFFT2D | ( | ) |
BALL::TFFT2D< ComplexTraits >::TFFT2D | ( | const TFFT2D< ComplexTraits > & | data | ) |
Copy constructor.
BALL::TFFT2D< ComplexTraits >::TFFT2D | ( | Size | nX, |
Size | nY, | ||
double | stepPhysX = 1. , |
||
double | stepPhysY = 1. , |
||
Vector2 | origin = Vector2(0., 0.) , |
||
bool | inFourierSpace = false |
||
) |
Detailed constructor.
nX | The number of grid points in X direction |
nY | The number of grid points in Y direction |
stepPhysX | The step width in X direction in physical space |
stepPhysY | The step width in Y direction in physical space |
origin | The origin of the coordinate system |
inFourierSpace | Flag to decide whether the data is assumed to be in physical or fourier space |
virtual BALL::TFFT2D< ComplexTraits >::~TFFT2D | ( | ) | [virtual] |
Destructor.
virtual void BALL::TFFT2D< ComplexTraits >::clear | ( | ) | [virtual] |
Clear the contents.
Reimplemented from BALL::TRegularData2D< std::complex< ComplexTraits::ComplexPrecision > >.
virtual void BALL::TFFT2D< ComplexTraits >::destroy | ( | ) | [virtual] |
Clear the contents and reset all attributes.
void BALL::TFFT2D< ComplexTraits >::doFFT | ( | ) |
Perform a single fast fourier transform on the data.
void BALL::TFFT2D< ComplexTraits >::doiFFT | ( | ) |
Perform a single inverse fourier transform on the data.
TFFT2D< ComplexTraits >::Complex BALL::TFFT2D< ComplexTraits >::getData | ( | const Vector2 & | pos | ) | const |
Returns the data at the grid position closest to pos , and automatically includes the correct phase factor and (symmetric) normalization.
Exception::OutOfGrid | if pos is outside the grid boundaries |
double BALL::TFFT2D< ComplexTraits >::getFourierSpaceMaxX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getFourierSpaceMaxY | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getFourierSpaceMinX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getFourierSpaceMinY | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getFourierStepWidthX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getFourierStepWidthY | ( | ) | const |
Vector2 BALL::TFFT2D< ComplexTraits >::getGridCoordinates | ( | Position | position | ) | const |
TFFT2D< ComplexTraits >::Complex BALL::TFFT2D< ComplexTraits >::getInterpolatedValue | ( | const Vector2 & | pos | ) | const |
Returns the data at point pos. If pos is not a point on the grid, the data is linearly interpolated. This method automatically includes the correct phase factor and (symmetric) normalization.
Exception::OutOfGrid | if pos is outside the grid boundaries |
Reimplemented from BALL::TRegularData2D< std::complex< ComplexTraits::ComplexPrecision > >.
Size BALL::TFFT2D< ComplexTraits >::getMaxXIndex | ( | ) | const |
Size BALL::TFFT2D< ComplexTraits >::getMaxYIndex | ( | ) | const |
Size BALL::TFFT2D< ComplexTraits >::getNumberOfInverseTransforms | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysSpaceMaxX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysSpaceMaxY | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysSpaceMinX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysSpaceMinY | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysStepWidthX | ( | ) | const |
double BALL::TFFT2D< ComplexTraits >::getPhysStepWidthY | ( | ) | const |
bool BALL::TFFT2D< ComplexTraits >::isInFourierSpace | ( | ) | const |
const TFFT2D& BALL::TFFT2D< ComplexTraits >::operator= | ( | const TFFT2D< ComplexTraits > & | fft_2d | ) |
Assignment operator.
bool BALL::TFFT2D< ComplexTraits >::operator== | ( | const TFFT2D< ComplexTraits > & | fft_2d | ) | const |
TFFT2D< ComplexTraits >::Complex & BALL::TFFT2D< ComplexTraits >::operator[] | ( | const Vector2 & | pos | ) |
Access the data at the grid position closest to pos . This function returns the "raw" data at that position.
Exception::OutOfGrid | if pos is outside the grid boundaries |
const TFFT2D< ComplexTraits >::Complex & BALL::TFFT2D< ComplexTraits >::operator[] | ( | const Vector2 & | pos | ) | const |
Access the data at the grid position closest to pos . This function returns the "raw" data at that position.
Exception::OutOfGrid | if pos is outside the grid boundaries |
const Complex& BALL::TFFT2D< ComplexTraits >::operator[] | ( | const IndexType & | index | ) | const [inline] |
Complex& BALL::TFFT2D< ComplexTraits >::operator[] | ( | const IndexType & | index | ) | [inline] |
Complex& BALL::TFFT2D< ComplexTraits >::operator[] | ( | const Position & | pos | ) | [inline] |
Access the (raw) data at Position pos.
Exception::OutOfGrid | if pos is outside the grid boundaries |
const Complex& BALL::TFFT2D< ComplexTraits >::operator[] | ( | const Position & | pos | ) | const [inline] |
Access the (raw) data at Position pos. Const method.
Exception::OutOfGrid | if pos is outside the grid boundaries |
TFFT2D< ComplexTraits >::Complex BALL::TFFT2D< ComplexTraits >::phase | ( | const Vector2 & | pos | ) | const |
void BALL::TFFT2D< ComplexTraits >::setData | ( | const Vector2 & | pos, |
Complex | val | ||
) |
Sets the data point at the grid position closest to pos to the value val , and -- if called in fourier space -- automatically includes the correct phase factor and (symmetric) normalization.
Exception::OutOfGrid | if pos is outside the grid boundaries |
void BALL::TFFT2D< ComplexTraits >::setNumberOfFFTTransforms | ( | Size | num | ) | [inline] |
void BALL::TFFT2D< ComplexTraits >::setNumberOfiFFTTransforms | ( | Size | num | ) | [inline] |
bool BALL::TFFT2D< ComplexTraits >::setPhysStepWidth | ( | double | new_width_x, |
double | new_width_y | ||
) |
bool BALL::TFFT2D< ComplexTraits >::translate | ( | const Vector2 & | trans_origin | ) |
Complex* BALL::TFFT2D< ComplexTraits >::dataAdress_ [protected] |
Size BALL::TFFT2D< ComplexTraits >::dataLength_ [protected] |
bool BALL::TFFT2D< ComplexTraits >::inFourierSpace_ [protected] |
Size BALL::TFFT2D< ComplexTraits >::lengthX_ [protected] |
Size BALL::TFFT2D< ComplexTraits >::lengthY_ [protected] |
Vector2 BALL::TFFT2D< ComplexTraits >::maxFourier_ [protected] |
Vector2 BALL::TFFT2D< ComplexTraits >::maxPhys_ [protected] |
Vector2 BALL::TFFT2D< ComplexTraits >::minFourier_ [protected] |
Vector2 BALL::TFFT2D< ComplexTraits >::minPhys_ [protected] |
Size BALL::TFFT2D< ComplexTraits >::numFourierToPhys_ [protected] |
Size BALL::TFFT2D< ComplexTraits >::numPhysToFourier_ [protected] |
Vector2 BALL::TFFT2D< ComplexTraits >::origin_ [protected] |
Origin of the grid (offset)
Reimplemented from BALL::TRegularData2D< std::complex< ComplexTraits::ComplexPrecision > >.
ComplexTraits::FftwPlan BALL::TFFT2D< ComplexTraits >::planBackward_ [protected] |
bool BALL::TFFT2D< ComplexTraits >::planCalculated_ [protected] |
ComplexTraits::FftwPlan BALL::TFFT2D< ComplexTraits >::planForward_ [protected] |
double BALL::TFFT2D< ComplexTraits >::stepFourierX_ [protected] |
double BALL::TFFT2D< ComplexTraits >::stepFourierY_ [protected] |
double BALL::TFFT2D< ComplexTraits >::stepPhysX_ [protected] |
double BALL::TFFT2D< ComplexTraits >::stepPhysY_ [protected] |