1 #ifndef _MULTI_TRACKER_H_
2 #define _MULTI_TRACKER_H_
7 #include "PredictorWrapper.h"
8 #include <opencv2/opencv.hpp>
14 TK_DECLARE_PTR(Patch);
15 TK_DECLARE_PTR(MultiTracker);
16 TK_DECLARE_PTR(Tracker);
17 TK_DECLARE_PTR(Engine);
22 MultiTracker(EngineWPtr e);
23 virtual ~MultiTracker();
24 void update(unsigned int total, const Detection* d, const cv::Mat& image);
27 std::vector<TrackerPtr> trackers;
29 PatchPtr createPatch(const cv::Mat& image, const Detection& d);
30 double distance(TrackerPtr t, const cv::Mat& image, const Detection& d);
31 PredictorWrapperPtr predictor;
32 cv::HOGDescriptor descriptor;
41 // hog is a hog descriptor of the image (calculated by hog.compute. size is 3780 )
42 // hue is a histogram of the image, (calcHist(), is a Mat with (width x height) 64 x 45)
43 std::pair<std::vector<double>, cv::Mat> features;
46 friend class MultiTracker;
53 #endif /* _MULTI_TRACKER_H_ */