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
ClassLabelFilter.h
Go to the documentation of this file.
1
33
#ifndef GRT_CLASS_LABEL_FILTER_HEADER
34
#define GRT_CLASS_LABEL_FILTER_HEADER
35
36
#include "../Util/GRTCommon.h"
37
#include "../CoreModules/PostProcessing.h"
38
39
GRT_BEGIN_NAMESPACE
40
41
class
GRT_API
ClassLabelFilter
:
public
PostProcessing
{
42
public
:
54
ClassLabelFilter
(
const
UINT minimumCount = 1,
const
UINT bufferSize = 1);
55
63
ClassLabelFilter
(
const
ClassLabelFilter
&rhs);
64
68
virtual
~
ClassLabelFilter
();
69
76
ClassLabelFilter
& operator=(
const
ClassLabelFilter
&rhs);
77
86
virtual
bool
deepCopyFrom
(
const
PostProcessing
*postProcessing)
override
;
87
96
virtual
bool
process
(
const
VectorDouble
&inputVector)
override
;
97
105
virtual
bool
reset
()
override
;
106
114
virtual
bool
save
( std::fstream &file )
const override
;
115
123
virtual
bool
load
( std::fstream &file )
override
;
124
132
bool
init
(
const
UINT minimumCount,
const
UINT bufferSize);
133
140
UINT filter(
const
UINT predictedClassLabel);
141
147
UINT
getFilteredClassLabel
()
const
{
return
filteredClassLabel; }
148
158
bool
setMinimumCount(
const
UINT minimumCount);
159
168
bool
setBufferSize(
const
UINT bufferSize);
169
175
static
std::string
getId
();
176
177
//Tell the compiler we are using the following functions from the MLBase class to stop hidden virtual function warnings
178
using
MLBase::save
;
179
using
MLBase::load
;
180
181
protected
:
182
UINT
filteredClassLabel
;
183
UINT
minimumCount
;
184
UINT
bufferSize
;
185
CircularBuffer< UINT >
buffer
;
186
187
private
:
188
static
const
std::string id;
189
static
RegisterPostProcessingModule< ClassLabelFilter >
registerModule;
190
};
191
192
GRT_END_NAMESPACE
193
194
#endif //GRT_CLASS_LABEL_FILTER_HEADER
GRTBase::getId
std::string getId() const
Definition:
GRTBase.cpp:85
PostProcessing::deepCopyFrom
virtual bool deepCopyFrom(const PostProcessing *postProcessing)
Definition:
PostProcessing.h:56
MLBase::reset
virtual bool reset()
Definition:
MLBase.cpp:147
PostProcessing::process
virtual bool process(const VectorFloat &inputVector)
Definition:
PostProcessing.h:72
RegisterPostProcessingModule< ClassLabelFilter >
MLBase::save
virtual bool save(const std::string &filename) const
Definition:
MLBase.cpp:167
PostProcessing
This is the main base class that all GRT PostProcessing algorithms should inherit from...
Definition:
PostProcessing.h:37
CircularBuffer< UINT >
VectorFloat
Definition:
VectorFloat.h:33
ClassLabelFilter::minimumCount
UINT minimumCount
The minimum count sets the minimum number of class label values that must be present in the class lab...
Definition:
ClassLabelFilter.h:183
ClassLabelFilter::buffer
CircularBuffer< UINT > buffer
The class label filter buffer.
Definition:
ClassLabelFilter.h:185
ClassLabelFilter::bufferSize
UINT bufferSize
The size of the Class Label Filter buffer.
Definition:
ClassLabelFilter.h:184
PostProcessing::init
bool init()
Definition:
PostProcessing.cpp:86
ClassLabelFilter
Definition:
ClassLabelFilter.h:41
MLBase::load
virtual bool load(const std::string &filename)
Definition:
MLBase.cpp:190
ClassLabelFilter::getFilteredClassLabel
UINT getFilteredClassLabel() const
Definition:
ClassLabelFilter.h:147
ClassLabelFilter::filteredClassLabel
UINT filteredClassLabel
The most recent filtered class label value.
Definition:
ClassLabelFilter.h:182
GRT
PostProcessingModules
ClassLabelFilter.h
Generated on Mon Jan 2 2017 16:24:34 for GestureRecognitionToolkit by
1.8.11