4 #include <opencv2/opencv.hpp>
8 #include "MultiTracker.h"
13 TK_DECLARE_PTR(Tracker);
14 TK_DECLARE_PTR(Patch);
26 Tracker(const cv::Mat& image, const Detection& d, int id = 0);
28 void updateState(const cv::Mat& image);
29 void addPatch(PatchPtr p);
30 void correct(const cv::Mat& image, const Detection& d);
32 std::vector<PatchPtr> patches;
34 TrackerStatus status = TrackerStatus::Fire;
35 static constexpr int MaxPatch = 5;
38 TrackerStatus preStatus = TrackerStatus::Fire;
42 cv::KalmanFilter KF = {4,2};
46 #endif /* _TRACKER_H_ */