1 #ifndef _MULTI_TRACKER_H_
2 #define _MULTI_TRACKER_H_
7 #include "PredictorWrapper.h"
8 #include <opencv2/opencv.hpp>
13 TK_DECLARE_PTR(Patch);
14 TK_DECLARE_PTR(MultiTracker);
15 TK_DECLARE_PTR(Tracker);
21 virtual ~MultiTracker();
22 void update(unsigned int total, const Detection* d, const cv::Mat& image);
25 std::vector<TrackerPtr> trackers;
27 PatchPtr createPatch(const cv::Mat& image, const Detection& d);
28 double distance(TrackerPtr t, const cv::Mat& image, const Detection& d);
29 PredictorWrapperPtr predictor;
30 cv::HOGDescriptor descriptor;
38 //std::vector<double> features;
39 // hog is a hog descriptor of the image (calculated by hog.compute. size is 3780 )
40 // hue is a histogram of the image, (calcHist(), is a Mat with (width x height) 64 x 45)
41 std::pair<std::vector<double>, cv::Mat> features;
44 friend class MultiTracker;
51 #endif /* _MULTI_TRACKER_H_ */