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.
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
EnvelopeExtractor.h
Go to the documentation of this file.
1
29
#ifndef GRT_ENVELOPE_EXTRACTOR_HEADER
30
#define GRT_ENVELOPE_EXTRACTOR_HEADER
31
32
//Include the main GRT header to get access to the FeatureExtraction base class
33
#include "../../CoreModules/FeatureExtraction.h"
34
35
GRT_BEGIN_NAMESPACE
36
37
class
GRT_API
EnvelopeExtractor
:
public
FeatureExtraction
{
38
public
:
45
EnvelopeExtractor
(
const
UINT bufferSize = 100,
const
UINT numDimensions = 1);
46
52
EnvelopeExtractor
(
const
EnvelopeExtractor
&rhs);
53
57
virtual
~
EnvelopeExtractor
();
58
65
EnvelopeExtractor
& operator=(
const
EnvelopeExtractor
&rhs);
66
75
virtual
bool
deepCopyFrom
(
const
FeatureExtraction
*featureExtraction);
76
85
virtual
bool
computeFeatures
(
const
VectorFloat
&inputVector);
86
94
virtual
bool
reset
();
95
104
virtual
bool
save
( std::fstream &file )
const
;
105
113
virtual
bool
load
( std::fstream &file );
114
123
bool
init
(
const
UINT bufferSize = 100,
const
UINT numDimensions = 1 );
124
125
//Tell the compiler we are using the following functions from the MLBase class to stop hidden virtual function warnings
126
using
MLBase::save
;
127
using
MLBase::load
;
128
134
static
std::string
getId
();
135
136
protected
:
137
UINT bufferSize;
138
CircularBuffer< VectorFloat >
buffer;
139
140
private
:
141
static
RegisterFeatureExtractionModule< EnvelopeExtractor >
registerModule;
142
static
std::string id;
143
};
144
145
GRT_END_NAMESPACE
146
147
#endif //HEADER GUARD
148
GRTBase::getId
std::string getId() const
Definition:
GRTBase.cpp:85
EnvelopeExtractor
Definition:
EnvelopeExtractor.h:37
MLBase::reset
virtual bool reset()
Definition:
MLBase.cpp:147
FeatureExtraction::init
bool init()
Definition:
FeatureExtraction.cpp:86
MLBase::save
virtual bool save(const std::string &filename) const
Definition:
MLBase.cpp:167
FeatureExtraction::computeFeatures
virtual bool computeFeatures(const VectorFloat &inputVector)
Definition:
FeatureExtraction.h:75
CircularBuffer< VectorFloat >
RegisterFeatureExtractionModule< EnvelopeExtractor >
FeatureExtraction
Definition:
FeatureExtraction.h:38
VectorFloat
Definition:
VectorFloat.h:33
MLBase::load
virtual bool load(const std::string &filename)
Definition:
MLBase.cpp:190
FeatureExtraction::deepCopyFrom
virtual bool deepCopyFrom(const FeatureExtraction *rhs)
Definition:
FeatureExtraction.h:58
GRT
FeatureExtractionModules
EnvelopeExtractor
EnvelopeExtractor.h
Generated on Mon Jan 2 2017 16:24:35 for GestureRecognitionToolkit by
1.8.11