-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtrackfeature.h
51 lines (36 loc) · 849 Bytes
/
trackfeature.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Author: Suryansh Kumar
*
**/
#ifndef TRACKFEATURE_H
#define TRACKFEATURE_H
#include <iostream>
#include <string.h>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/nonfree/features2d.hpp>
using namespace std;
using namespace cv;
class trackfeature{
private:
double qualityLevel;
double minDistance;
int blockSize;
bool useHarrisDetector;
double k;
int maxCorners;
protected:
cv::Mat image1, image2;
std::vector<Point2f> goodFeatures;
std::vector<Point2f> trackedFeatures;
void match();
public:
cv::Mat HMatrix;
trackfeature(cv::Mat, cv::Mat);
void detectfeature();
cv::Mat drawfeaturePoints();
cv::Mat drawfeatureTrack();
cv::Mat getWarpImage();
};
#endif // TRACKFEATURE_H