BALL::TFFT2D< ComplexTraits > Class Template Reference
[Fast Fourier Transforms]
#include <BALL/MATHS/FFT2D.h>
List of all members.
Detailed Description
template<typename ComplexTraits>
class BALL::TFFT2D< ComplexTraits >
A class to perform Fast Fourier Transforms and inverse Fast Fourier Transforms on regularly spaced two dimensional data.
- This class makes use of the freely available library FFTW, which can be found at http://www.fftw.org coordinate system can be handled automatically. The normaliztion is chosen symmetrically.
- S/TFFT2D.h
Definition at line 41 of file FFT2D.h.
Member Typedef Documentation
template<typename ComplexTraits>
typedef std::complex<typename ComplexTraits::ComplexPrecision> BALL::TFFT2D< ComplexTraits >::Complex |
template<typename ComplexTraits>
template<typename ComplexTraits>
Constructor & Destructor Documentation
template<typename ComplexTraits >
Default constructor.
Definition at line 334 of file FFT2D.h.
template<typename ComplexTraits>
template<typename ComplexTraits>
Detailed constructor.
- Parameters:
-
| 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 |
template<typename ComplexTraits>
Member Function Documentation
template<typename ComplexTraits>
virtual void BALL::TFFT2D< ComplexTraits >::clear |
( |
|
) |
[virtual] |
template<typename ComplexTraits>
virtual void BALL::TFFT2D< ComplexTraits >::destroy |
( |
|
) |
[virtual] |
Clear the contents and reset all attributes.
template<typename ComplexTraits>
Perform a single fast fourier transform on the data.
template<typename ComplexTraits>
Perform a single inverse fourier transform on the data.
template<typename ComplexTraits >
Returns the data at the grid position closest to pos , and automatically includes the correct phase factor and (symmetric) normalization.
- Exceptions:
-
Definition at line 579 of file FFT2D.h.
template<typename ComplexTraits >
Returns the maximal position of the grid in fourier space in X direction.
Definition at line 492 of file FFT2D.h.
template<typename ComplexTraits >
Returns the maximal position of the grid in fourier space in Y direction.
Definition at line 498 of file FFT2D.h.
template<typename ComplexTraits >
Returns the minimal position of the grid in fourier space in X direction.
Definition at line 480 of file FFT2D.h.
template<typename ComplexTraits >
Returns the minimal position of the grid in fourier space in Y direction.
Definition at line 486 of file FFT2D.h.
template<typename ComplexTraits >
Returns the step width in fourier space in X direction.
Definition at line 444 of file FFT2D.h.
template<typename ComplexTraits >
Returns the step width in fourier space in Y direction.
Definition at line 450 of file FFT2D.h.
template<typename ComplexTraits >
Returns the grid coordinate corresponding to the position.
Definition at line 523 of file FFT2D.h.
template<typename ComplexTraits >
template<typename ComplexTraits >
Return the largest grid position for the x direction. This method returns the maximum position allowed in the grid. As the point in the origin has the indices (0, 0), this method returns the number of points in X direction minus one.
Definition at line 504 of file FFT2D.h.
template<typename ComplexTraits >
Return the largest grid position for the y direction. This method returns the maximum position allowed in the grid. As the point in the origin has the indices (0, 0), this method returns the number of points in Y direction minus one.
Definition at line 510 of file FFT2D.h.
template<typename ComplexTraits >
Size BALL::TFFT2D< ComplexTraits >::getNumberOfInverseTransforms |
( |
|
) |
const [inline] |
Return the number of inverse transforms that have been carried out using this class. This is an important factor for the normalization of the data.
Definition at line 516 of file FFT2D.h.
template<typename ComplexTraits >
Returns the maximal position of the grid in physical space in X direction.
Definition at line 468 of file FFT2D.h.
template<typename ComplexTraits >
Returns the maximal position of the grid in physical space in Y direction.
Definition at line 474 of file FFT2D.h.
template<typename ComplexTraits >
Returns the minimal position of the grid in physical space in X direction.
Definition at line 456 of file FFT2D.h.
template<typename ComplexTraits >
Returns the minimal position of the grid in physical space in Y direction.
Definition at line 462 of file FFT2D.h.
template<typename ComplexTraits >
Returns the step width in physical space in X direction.
Definition at line 432 of file FFT2D.h.
template<typename ComplexTraits >
Returns the step width in physical space in Y direction.
Definition at line 438 of file FFT2D.h.
template<typename ComplexTraits >
Returns true if the data is considered to be in Fourier space, false otherwise.
Definition at line 762 of file FFT2D.h.
template<typename ComplexTraits>
template<typename ComplexTraits >
Equality operator.
Definition at line 343 of file FFT2D.h.
template<typename ComplexTraits>
Access the (raw) data at Position pos. Const method.
- Exceptions:
-
Definition at line 265 of file FFT2D.h.
template<typename ComplexTraits>
Access the (raw) data at Position pos.
- Exceptions:
-
Definition at line 256 of file FFT2D.h.
template<typename ComplexTraits>
Mutable random access operator.
- Note:
- No range checking is done. For a more robust version, please use getData.
Definition at line 250 of file FFT2D.h.
template<typename ComplexTraits>
Nonmutable random access operator.
- Note:
- No range checking is done. For a more robust version, please use getData.
Definition at line 244 of file FFT2D.h.
template<typename ComplexTraits >
Access the data at the grid position closest to pos . This function returns the "raw" data at that position.
- Exceptions:
-
Definition at line 707 of file FFT2D.h.
template<typename ComplexTraits >
Access the data at the grid position closest to pos . This function returns the "raw" data at that position.
- Exceptions:
-
Definition at line 665 of file FFT2D.h.
template<typename ComplexTraits >
This computes the phase factor in fourier space that results if the origin of the coordinate system in physical space is not in the "lower left corner".
Definition at line 749 of file FFT2D.h.
template<typename ComplexTraits >
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.
- Exceptions:
-
Definition at line 642 of file FFT2D.h.
template<typename ComplexTraits>
void BALL::TFFT2D< ComplexTraits >::setNumberOfFFTTransforms |
( |
Size |
num |
) |
[inline] |
template<typename ComplexTraits>
void BALL::TFFT2D< ComplexTraits >::setNumberOfiFFTTransforms |
( |
Size |
num |
) |
[inline] |
template<typename ComplexTraits >
Set the step width in physical space to {new_width_x, new_width_y}. The step width in fourier space is automatically adjusted accordingly. {new_width_x and new_width_y} must be positive, otherwise the function does nothing and retuns false .
Definition at line 409 of file FFT2D.h.
template<typename ComplexTraits >
Translate the origin in physical space about {trans_origin}, i.e. the new origin will be located at the former position {trans_origin}. If the result is out of bounds, the function does nothing and returns false .
Definition at line 385 of file FFT2D.h.
Member Data Documentation
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>
template<typename ComplexTraits>