-
Notifications
You must be signed in to change notification settings - Fork 183
/
CMT.h
55 lines (39 loc) · 980 Bytes
/
CMT.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
52
53
54
55
#ifndef CMT_H
#define CMT_H
#include "common.h"
#include "Consensus.h"
#include "Fusion.h"
#include "Matcher.h"
#include "Tracker.h"
#include <opencv2/features2d/features2d.hpp>
using cv::FeatureDetector;
using cv::DescriptorExtractor;
using cv::Ptr;
using cv::RotatedRect;
using cv::Size2f;
namespace cmt
{
class CMT
{
public:
CMT() : str_detector("FAST"), str_descriptor("BRISK") {};
void initialize(const Mat im_gray, const Rect rect);
void processFrame(const Mat im_gray);
Fusion fusion;
Matcher matcher;
Tracker tracker;
Consensus consensus;
string str_detector;
string str_descriptor;
vector<Point2f> points_active; //public for visualization purposes
RotatedRect bb_rot;
private:
Ptr<FeatureDetector> detector;
Ptr<DescriptorExtractor> descriptor;
Size2f size_initial;
vector<int> classes_active;
float theta;
Mat im_prev;
};
} /* namespace CMT */
#endif /* end of include guard: CMT_H */