1 #ifndef MTF_FEATURE_BASE_H 2 #define MTF_FEATURE_BASE_H 4 #include "mtf/TrackerBase.h" 5 #include "mtf/Macros/common.h" 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){
19 return detect(mask, obj_location);
Definition: FeatureBase.h:9