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
MovementIndex.h
Go to the documentation of this file.
1
33
#ifndef GRT_MOVEMENT_INDEX_HEADER
34
#define GRT_MOVEMENT_INDEX_HEADER
35
36
#include "../../CoreModules/FeatureExtraction.h"
37
#include "../../Util/Util.h"
38
39
GRT_BEGIN_NAMESPACE
40
41
class
GRT_API
MovementIndex
:
public
FeatureExtraction
{
42
public
:
49
MovementIndex
(
const
UINT bufferLength=100,
const
UINT numDimensions = 1);
50
56
MovementIndex
(
const
MovementIndex
&rhs);
57
61
virtual
~
MovementIndex
();
62
69
MovementIndex
& operator=(
const
MovementIndex
&rhs);
70
79
virtual
bool
deepCopyFrom
(
const
FeatureExtraction
*featureExtraction);
80
89
virtual
bool
computeFeatures
(
const
VectorFloat
&inputVector);
90
98
virtual
bool
reset
();
99
107
virtual
bool
save
( std::fstream &file )
const
;
108
116
virtual
bool
load
( std::fstream &file );
117
125
bool
init
(
const
UINT bufferLength,
const
UINT numDimensions);
126
133
VectorFloat
update(
const
Float x);
134
141
VectorFloat
update(
const
VectorFloat
&x);
142
149
CircularBuffer< VectorFloat >
getData()
const
;
150
151
//Tell the compiler we are using the following functions from the MLBase class to stop hidden virtual function warnings
152
using
MLBase::save
;
153
using
MLBase::load
;
154
using
MLBase::train
;
155
using
MLBase::train_
;
156
using
MLBase::predict
;
157
using
MLBase::predict_
;
158
164
static
std::string
getId
();
165
166
protected
:
167
UINT bufferLength;
168
CircularBuffer< VectorFloat >
dataBuffer;
169
170
private
:
171
static
RegisterFeatureExtractionModule< MovementIndex >
registerModule;
172
static
std::string id;
173
};
174
175
GRT_END_NAMESPACE
176
177
#endif //GRT_MOVEMENT_INDEX_HEADER
178
GRTBase::getId
std::string getId() const
Definition:
GRTBase.cpp:85
MLBase::predict
virtual bool predict(VectorFloat inputVector)
Definition:
MLBase.cpp:135
MLBase::predict_
virtual bool predict_(VectorFloat &inputVector)
Definition:
MLBase.cpp:137
MLBase::reset
virtual bool reset()
Definition:
MLBase.cpp:147
FeatureExtraction::init
bool init()
Definition:
FeatureExtraction.cpp:86
MLBase::train
virtual bool train(ClassificationData trainingData)
Definition:
MLBase.cpp:107
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 >
MovementIndex
Definition:
MovementIndex.h:41
RegisterFeatureExtractionModule< MovementIndex >
FeatureExtraction
Definition:
FeatureExtraction.h:38
VectorFloat
Definition:
VectorFloat.h:33
MLBase::train_
virtual bool train_(ClassificationData &trainingData)
Definition:
MLBase.cpp:109
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
MovementIndex
MovementIndex.h
Generated on Mon Jan 2 2017 16:24:36 for GestureRecognitionToolkit by
1.8.11