GestureRecognitionToolkit  Version: 0.1.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
FastFourierTransform Class Reference
Inheritance diagram for FastFourierTransform:
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 enableZeroPadding=true)
 
bool computeFFT (VectorFloat &data)
 
VectorFloat getMagnitudeData ()
 
VectorFloat getPhaseData ()
 
VectorFloat getPowerData ()
 
Float getAveragePower ()
 
Float * getMagnitudeDataPtr ()
 
Float * getPhaseDataPtr ()
 
Float * getPowerDataPtr ()
 
UINT getFFTSize ()
 
- Public Member Functions inherited from GRTBase
 GRTBase (void)
 
virtual ~GRTBase (void)
 
bool copyGRTBaseVariables (const GRTBase *GRTBase)
 
std::string getClassType () const
 
std::string getLastWarningMessage () const
 
std::string getLastErrorMessage () const
 
std::string getLastInfoMessage () const
 
bool setInfoLoggingEnabled (const bool loggingEnabled)
 
bool setWarningLoggingEnabled (const bool loggingEnabled)
 
bool setErrorLoggingEnabled (const bool loggingEnabled)
 
GRTBasegetGRTBasePointer ()
 
const GRTBasegetGRTBasePointer () const
 

Protected Member Functions

bool windowData (VectorFloat &data)
 
bool realFFT (const VectorFloat &realIn, Float *realOut, Float *imagOut)
 
bool FFT (int NumSamples, bool InverseTransform, Float *realIn, Float *imagIn, Float *realOut, Float *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 GRTBase
Float SQR (const Float &x) const
 

Protected Attributes

unsigned int windowSize
 
unsigned int windowFunction
 
bool initialized
 
bool computeMagnitude
 
bool computePhase
 
bool enableZeroPadding
 
VectorFloat fftReal
 
VectorFloat fftImag
 
VectorFloat tmpReal
 
VectorFloat tmpImag
 
VectorFloat magnitude
 
VectorFloat phase
 
VectorFloat power
 
Float averagePower
 
Vector< Vector< int > > bitTable
 
- Protected Attributes inherited from GRTBase
std::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 GRTBase
static std::string getGRTVersion (bool returnRevision=true)
 
static std::string getGRTRevison ()
 

Detailed Description

Definition at line 34 of file FastFourierTransform.h.


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