GestureRecognitionToolkit  Version: 0.2.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
ClassLabelChangeFilter.h
Go to the documentation of this file.
1 
32 #ifndef GRT_CLASS_LABEL_CHANGE_FILTER_HEADER
33 #define GRT_CLASS_LABEL_CHANGE_FILTER_HEADER
34 
35 #include "../Util/GRTCommon.h"
36 #include "../CoreModules/PostProcessing.h"
37 
38 GRT_BEGIN_NAMESPACE
39 
40 class GRT_API ClassLabelChangeFilter : public PostProcessing{
41 public:
46 
55 
59  virtual ~ClassLabelChangeFilter();
60 
67  ClassLabelChangeFilter& operator=(const ClassLabelChangeFilter &rhs);
68 
77  virtual bool deepCopyFrom(const PostProcessing *postProcessing);
78 
87  virtual bool process(const VectorDouble &inputVector);
88 
96  virtual bool reset();
97 
105  virtual bool saveModelToFile( std::string filename ) const;
106 
114  virtual bool saveModelToFile( std::fstream &file ) const;
115 
123  virtual bool loadModelFromFile( std::string filename );
124 
132  virtual bool loadModelFromFile( std::fstream &file );
133 
139  bool init();
140 
147  UINT filter(UINT predictedClassLabel);
148 
154  UINT getFilteredClassLabel(){ return filteredClassLabel; }
155 
161  bool getChange();
162 
163 protected:
164  UINT filteredClassLabel;
165  bool labelChanged;
166 
168 };
169 
170 GRT_END_NAMESPACE
171 
172 #endif //GRT_CLASS_LABEL_CHANGE_FILTER_HEADER
virtual bool deepCopyFrom(const PostProcessing *postProcessing)
virtual bool process(const VectorFloat &inputVector)
virtual bool loadModelFromFile(std::string filename)
virtual bool reset()
bool init()
virtual bool saveModelToFile(std::string filename) const