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.
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 
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;
139 
140 private:
142  static std::string id;
143 };
144 
145 GRT_END_NAMESPACE
146 
147 #endif //HEADER GUARD
148 
std::string getId() const
Definition: GRTBase.cpp:85
virtual bool reset()
Definition: MLBase.cpp:147
virtual bool save(const std::string &filename) const
Definition: MLBase.cpp:167
virtual bool computeFeatures(const VectorFloat &inputVector)
virtual bool load(const std::string &filename)
Definition: MLBase.cpp:190
virtual bool deepCopyFrom(const FeatureExtraction *rhs)