Add test for Predictor
[trackerpp.git] / src / Tracker.cpp
index 99a4e28..8ab2414 100644 (file)
@@ -2,6 +2,7 @@
 
 using namespace suanzi;
 using namespace cv;
+using namespace std;
 
 static const int MaxLost = 5;
 
@@ -10,8 +11,7 @@ Tracker::Tracker(const cv::Mat& image,int id) : id(id)
     status = TrackerStatus::Fire;
     preStatus = TrackerStatus::Fire;
 
-    // TODO
-    // init KalmanFilter
+    // TODO: Kalman filter
     this->kf.transitionMatrix = (Mat_<float>(4, 4) << 
                                                 1, 0, 1, 0,
                                                 0, 1, 0, 1,
@@ -25,8 +25,6 @@ Tracker::Tracker(const cv::Mat& image,int id) : id(id)
     this->kf.processNoiseCov = 1e-5 * Mat_<float>::eye(4, 4);
     this->kf.measurementNoiseCov = 1e-1 * Mat_<float>::ones(2, 2);
     this->kf.errorCovPost = 1. * Mat_<float>::ones(4, 4);
-
-
 }
 
 Tracker::~Tracker()