GestureRecognitionToolkit  Version: 1.0 Revision: 04-03-15
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 namespace GRT{
39 
41 public:
46 
55 
59  virtual ~ClassLabelChangeFilter();
60 
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(string filename) const;
106 
114  virtual bool saveModelToFile(fstream &file) const;
115 
123  virtual bool loadModelFromFile(string filename);
124 
132  virtual bool loadModelFromFile(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 }//End of namespace GRT
171 
172 #endif //GRT_CLASS_LABEL_CHANGE_FILTER_HEADER
ClassLabelChangeFilter & operator=(const ClassLabelChangeFilter &rhs)
Definition: AdaBoost.cpp:25
virtual bool deepCopyFrom(const PostProcessing *postProcessing)
UINT filter(UINT predictedClassLabel)
virtual bool saveModelToFile(string filename) const
virtual bool loadModelFromFile(string filename)
virtual bool process(const VectorDouble &inputVector)