-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataStructures.h
41 lines (31 loc) · 1.08 KB
/
dataStructures.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
#ifndef dataStructures_h
#define dataStructures_h
#include <vector>
#include <opencv2/core.hpp>
using namespace std;
struct DataFrame { // represents the available sensor information at the same time instance
cv::Mat cameraImg; // camera image
std::vector<cv::KeyPoint> keypoints; // 2D keypoints within camera image
cv::Mat descriptors; // keypoint descriptors
std::vector<cv::DMatch> keypointMatches; // keypoint matches between previous and current frame
};
enum KeypointDetector
{
Shi_Tomasi,
HARRIS,
FAST,
BRISK,
ORB,
AKAZE,
SIFT
};
struct Hyperparameters
{
Hyperparameters()= default;
KeypointDetector keypointDetector = Shi_Tomasi; // Shi_Tomasi, HARRIS, FAST, BRISK, ORB, AKAZE, SIFT
string descriptor = "BRIEF"; // BRISK, BRIEF, ORB, FREAK, AKAZE, SIFT
string matcherType = "MAT_BF"; // MAT_BF, MAT_FLANN
string descriptorType = "DES_BINARY"; // DES_BINARY, DES_HOG
string selectorType = "SEL_KNN"; // SEL_NN, SEL_KNN
};
#endif /* dataStructures_h */