GestureRecognitionToolkit  Version: 0.2.5
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 () const
 
VectorFloat getPhaseData () const
 
VectorFloat getPowerData () const
 
Float getAveragePower () const
 
Float * getMagnitudeDataPtr ()
 
Float * getPhaseDataPtr ()
 
Float * getPowerDataPtr ()
 
UINT getFFTSize () const
 
- Public Member Functions inherited from GRTBase
 GRTBase (const std::string &id="")
 
virtual ~GRTBase (void)
 
bool copyGRTBaseVariables (const GRTBase *GRTBase)
 
 GRT_DEPRECATED_MSG ("getClassType is deprecated, use getId() instead!", std::string getClassType() const )
 
std::string getId () 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)
 
bool setDebugLoggingEnabled (const bool loggingEnabled)
 
GRTBasegetGRTBasePointer ()
 
const GRTBasegetGRTBasePointer () const
 
Float scale (const Float &x, const Float &minSource, const Float &maxSource, const Float &minTarget, const Float &maxTarget, const bool constrain=false)
 
Float SQR (const Float &x) 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 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 classId
 Stores the name of the class (e.g., MinDist)
 
DebugLog debugLog
 
ErrorLog errorLog
 
InfoLog infoLog
 
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: