GestureRecognitionToolkit  Version: 1.0 Revision: 04-03-15
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
GRT::FastFourierTransform Class Reference
Inheritance diagram for GRT::FastFourierTransform:
GRT::GRTBase

Public Types

enum  WindowFunctionOptions { RECTANGULAR_WINDOW =0, BARTLETT_WINDOW, HAMMING_WINDOW, HANNING_WINDOW }
 

Public Member Functions

 FastFourierTransform (const FastFourierTransform &rhs)
 
FastFourierTransformoperator= (const FastFourierTransform &rhs)
 
bool init (const unsigned int windowSize, const unsigned int windowFunction=RECTANGULAR_WINDOW, const bool computeMagnitude=true, const bool computePhase=true)
 
bool computeFFT (VectorDouble &data)
 
VectorDouble getMagnitudeData ()
 
VectorDouble getPhaseData ()
 
VectorDouble getPowerData ()
 
double getAveragePower ()
 
double * getMagnitudeDataPtr ()
 
double * getPhaseDataPtr ()
 
double * getPowerDataPtr ()
 
UINT getFFTSize ()
 
- Public Member Functions inherited from GRT::GRTBase
 GRTBase (void)
 
virtual ~GRTBase (void)
 
bool copyGRTBaseVariables (const GRTBase *GRTBase)
 
string getClassType () const
 
string getLastWarningMessage () const
 
string getLastErrorMessage () const
 
string getLastInfoMessage () const
 
GRTBasegetGRTBasePointer ()
 
const GRTBasegetGRTBasePointer () const
 

Protected Member Functions

bool windowData (VectorDouble &data)
 
bool realFFT (const VectorDouble &realIn, double *realOut, double *imagOut)
 
bool FFT (int NumSamples, bool InverseTransform, double *realIn, double *imagIn, double *realOut, double *imagOut)
 
int numberOfBitsNeeded (int PowerOfTwo)
 
int reverseBits (int index, int NumBits)
 
void initFFT ()
 
int fastReverseBits (const int i, const int NumBits)
 
bool isPowerOfTwo (const unsigned int x)
 
- Protected Member Functions inherited from GRT::GRTBase
double SQR (const double &x) const
 

Protected Attributes

unsigned int windowSize
 
unsigned int windowFunction
 
bool initialized
 
bool computeMagnitude
 
bool computePhase
 
VectorDouble fftReal
 
VectorDouble fftImag
 
VectorDouble tmpReal
 
VectorDouble tmpImag
 
VectorDouble magnitude
 
VectorDouble phase
 
VectorDouble power
 
double averagePower
 
vector< vector< int > > bitTable
 
- Protected Attributes inherited from GRT::GRTBase
string classType
 
DebugLog debugLog
 
ErrorLog errorLog
 
InfoLog infoLog
 
TrainingLog trainingLog
 
TestingLog testingLog
 
WarningLog warningLog
 

Static Protected Attributes

static const int MAX_FAST_BITS = 16
 

Additional Inherited Members

- Static Public Member Functions inherited from GRT::GRTBase
static string getGRTVersion (bool returnRevision=true)
 
static string getGRTRevison ()
 

Detailed Description

Definition at line 34 of file FastFourierTransform.h.


The documentation for this class was generated from the following files: