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.
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 #include "../../DataStructures/TimeSeriesClassificationData.h"
35 #include "../../DataStructures/ClassificationDataStream.h"
36 #include "../../DataStructures/UnlabelledData.h"
37 
38 GRT_BEGIN_NAMESPACE
39 
40 class GRT_API EnvelopeExtractor : public FeatureExtraction{
41 public:
48  EnvelopeExtractor(const UINT bufferSize = 100,const UINT numDimensions = 1);
49 
56 
60  virtual ~EnvelopeExtractor();
61 
68  EnvelopeExtractor& operator=(const EnvelopeExtractor &rhs);
69 
78  virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction);
79 
88  virtual bool computeFeatures(const VectorFloat &inputVector);
89 
97  virtual bool reset();
98 
105  virtual bool saveModelToFile( std::string filename ) const;
106 
113  virtual bool loadModelFromFile( std::string filename );
114 
123  virtual bool saveModelToFile( std::fstream &file ) const;
124 
132  virtual bool loadModelFromFile( std::fstream &file );
133 
134  bool init( const UINT bufferSize = 100,const UINT numDimensions = 1 );
135 
136 protected:
137  UINT bufferSize;
139 
141 };
142 
143 GRT_END_NAMESPACE
144 
145 #endif //GRT_KMEANS_FEATURES_HEADER
virtual bool saveModelToFile(std::fstream &file) const
virtual bool loadModelFromFile(std::fstream &file)
virtual bool computeFeatures(const VectorFloat &inputVector)
virtual bool reset()
virtual bool deepCopyFrom(const FeatureExtraction *rhs)