MTF
FeatureBase.h
1 #ifndef MTF_FEATURE_BASE_H
2 #define MTF_FEATURE_BASE_H
3 
4 #include "mtf/TrackerBase.h"
5 #include "mtf/Macros/common.h"
6 
7 _MTF_BEGIN_NAMESPACE
8 
9 class FeatureBase : public TrackerBase{
10 public:
11  FeatureBase() : TrackerBase(), pix_mask_needed(false){}
12  virtual void initPixMask(){ pix_mask_needed = true; }
13  virtual const uchar* getPixMask() = 0;
14  virtual int getResX() = 0;
15  virtual int getResY() = 0;
16  virtual bool detect(const cv::Mat &mask, cv::Mat &obj_location) = 0;
17  virtual bool detect(const cv::Mat &img, const cv::Mat &mask, cv::Mat &obj_location){
18  setImage(img);
19  return detect(mask, obj_location);
20  }
21 protected:
22  bool pix_mask_needed;
23 };
24 
25 _MTF_END_NAMESPACE
26 
27 #endif
28 
Definition: FeatureBase.h:9