void updateState(const cv::Mat& image);
void addPatch(PatchPtr p);
void correct(const cv::Mat& image, const Detection& d);
- TrackerStatus status;
+ void predict();
std::vector<PatchPtr> patches;
Detection detection;
+ TrackerStatus status = TrackerStatus::Fire;
private:
- TrackerStatus preStatus;
+ TrackerStatus preStatus = TrackerStatus::Fire;
int id;
- int age;
- int last_active;
- cv::KalmanFilter kf = {4,2};
+ int age = 1;
+ int last_active = 1;
+ cv::KalmanFilter KF = {4,2};
};
-
-
}
#endif /* _TRACKER_H_ */