forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defines.h
125 lines (107 loc) · 1.78 KB
/
defines.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#pragma once
#include <vector>
#include <string>
#include <map>
#include <opencv2/opencv.hpp>
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
typedef float track_t;
typedef cv::Point_<track_t> Point_t;
#define Mat_t CV_32FC
///
/// \brief config_t
///
typedef std::map<std::string, std::string> config_t;
///
/// \brief The CRegion class
///
class CRegion
{
public:
CRegion()
: m_type(""), m_confidence(-1)
{
}
CRegion(const cv::Rect& rect)
: m_rect(rect)
{
}
CRegion(const cv::Rect& rect, const std::string& type, float confidence)
: m_rect(rect), m_type(type), m_confidence(confidence)
{
}
cv::Rect m_rect;
std::vector<cv::Point2f> m_points;
std::string m_type;
float m_confidence;
};
typedef std::vector<CRegion> regions_t;
///
///
///
namespace tracking
{
///
enum Detectors
{
Motion_VIBE,
Motion_MOG,
Motion_GMG,
Motion_CNT,
Motion_SuBSENSE,
Motion_LOBSTER,
Motion_MOG2,
Face_HAAR,
Pedestrian_HOG,
Pedestrian_C4,
SSD_MobileNet,
Yolo
};
///
/// \brief The DistType enum
///
enum DistType
{
DistCenters = 0,
DistRects = 1,
DistJaccard = 2
};
///
/// \brief The FilterGoal enum
///
enum FilterGoal
{
FilterCenter = 0,
FilterRect = 1
};
///
/// \brief The KalmanType enum
///
enum KalmanType
{
KalmanLinear = 0,
KalmanUnscented = 1,
KalmanAugmentedUnscented
};
///
/// \brief The MatchType enum
///
enum MatchType
{
MatchHungrian = 0,
MatchBipart = 1
};
///
/// \brief The LostTrackType enum
///
enum LostTrackType
{
TrackNone = 0,
TrackKCF = 1,
TrackMIL,
TrackMedianFlow,
TrackGOTURN,
TrackMOSSE
};
}