forked from linyicheng1/LET-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracking.h
More file actions
27 lines (23 loc) · 713 Bytes
/
Copy pathtracking.h
File metadata and controls
27 lines (23 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __TRACKING_H_
#define __TRACKING_H_
#include <vector>
#include "opencv2/opencv.hpp"
class corner_tracking
{
public:
corner_tracking() = default;
~corner_tracking() = default;
void update(const cv::Mat& score, const cv::Mat& desc);
void show(cv::Mat& img);
private:
std::vector<cv::Point2f> extractFeature(
const cv::Mat& score,
int ncellsize = 20,
const std::vector<cv::Point2f>& points = std::vector<cv::Point2f>());
std::vector<cv::Point2f> trackedPoints;
std::vector<cv::Point2f> prevTrackedPoints;
cv::Mat prevScore;
cv::Mat prevDesc;
std::vector<std::vector<cv::Point2f>> trackedPointsHistory;
};
#endif //__TRACKING_H_