1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef VOXEL_DFT_H
- #define VOXEL_DFT_H
- #include <Common.h>
- namespace Voxel
- {
-
- typedef Vector<ComplexDouble> Complex1D;
- typedef Vector<Vector<ComplexDouble>> Complex2D;
- class VOXEL_EXPORT DFT
- {
- public:
- enum Direction
- {
- FORWARD = 1,
- REVERSE = -1
- };
-
- protected:
- Complex2D _internal;
-
- Map<SizeType, Complex2D> _expTable;
-
- void _computeExpTable(SizeType size, Direction dir);
-
- public:
-
- bool DFT2D(Complex2D &data, Direction dir);
-
-
- bool DFT1D(const Complex1D &in, Complex1D &out, Direction dir);
- };
-
- }
- #endif
|