SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
CVTypedefs.h
Go to the documentation of this file.
1 /**
2  * \file CVTypedefs.h
3  * \date Autumn 2016
4  * \authors Marcus Hudritsch
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #ifndef CVTYPEDEFS_H
11 #define CVTYPEDEFS_H
12 
13 /*
14 The OpenCV library version 3.4 with extra module must be present.
15 If the application captures the live video stream with OpenCV you have
16 to define in addition the constant APP_USES_CVCAPTURE.
17 All classes that use OpenCV begin with CV.
18 See also the class docs for CVCapture, CVCalibration and CVTracked
19 for a good top down information.
20 */
21 
22 #include <vector>
23 #include <opencv2/core/core.hpp>
24 #include <opencv2/core/ocl.hpp>
25 #include <opencv2/opencv.hpp>
26 #include <opencv2/imgproc/imgproc.hpp>
27 
28 #ifdef __EMSCRIPTEN__
29 # include <list>
30 #endif
31 
32 #include <opencv2/face.hpp>
33 #include <opencv2/xfeatures2d.hpp>
34 
35 using std::vector;
36 
37 //-----------------------------------------------------------------------------
38 typedef cv::Mat CVMat;
39 typedef cv::Rect CVRect;
40 typedef cv::Rect2f CVRect2f;
41 typedef cv::Point CVPoint;
42 typedef cv::Point2i CVPoint2i;
43 typedef cv::Point2f CVPoint2f;
44 typedef cv::Point2d CVPoint2d;
45 typedef cv::Point3f CVPoint3f;
46 typedef cv::Point3d CVPoint3d;
47 typedef cv::Vec2b CVVec2b;
48 typedef cv::Vec3b CVVec3b;
49 typedef cv::Vec4b CVVec4b;
50 typedef cv::Vec2f CVVec2f;
51 typedef cv::Vec2d CVVec2d;
52 typedef cv::Vec3f CVVec3f;
53 typedef cv::Vec3d CVVec3d;
54 typedef cv::Vec4f CVVec4f;
55 typedef cv::Size CVSize;
56 typedef cv::Size2i CVSize2i;
57 typedef cv::Size2f CVSize2f;
58 typedef cv::Matx33f CVMatx33f;
59 typedef cv::Matx44f CVMatx44f;
60 typedef cv::KeyPoint CVKeyPoint;
61 typedef cv::FileStorage CVFileStorage;
62 typedef cv::DMatch CVDMatch;
63 typedef cv::InputArray CVInputArray;
64 typedef cv::OutputArray CVOutputArray;
65 typedef cv::Feature2D CVFeature2D;
66 typedef cv::CascadeClassifier CVCascadeClassifier;
67 #ifndef __EMSCRIPTEN__
68 typedef cv::VideoCapture CVVideoCapture;
69 #endif
70 typedef cv::face::Facemark CVFacemark;
71 
72 // 1D STL vectors
73 typedef vector<cv::Mat> CVVMat;
74 typedef vector<cv::Rect> CVVRect;
75 typedef vector<cv::Point> CVVPoint;
76 typedef vector<cv::Point2i> CVVPoint2i;
77 typedef vector<cv::Point2f> CVVPoint2f;
78 typedef vector<cv::Point2d> CVVPoint2d;
79 typedef vector<cv::Point3f> CVVPoint3f;
80 typedef vector<cv::Point3d> CVVPoint3d;
81 typedef vector<cv::Vec2b> CVVVec2b;
82 typedef vector<cv::Vec3b> CVVVec3b;
83 typedef vector<cv::Vec4b> CVVVec4b;
84 typedef vector<cv::Vec2f> CVVVec2f;
85 typedef vector<cv::Vec3f> CVVVec3f;
86 typedef vector<cv::Vec4f> CVVVec4f;
87 typedef vector<cv::Size> CVVSize;
88 typedef vector<cv::KeyPoint> CVVKeyPoint;
89 typedef vector<cv::DMatch> CVVDMatch;
90 typedef vector<cv::Matx44f> CVVMatx44f;
91 typedef vector<cv::Matx33f> CVVMatx33f;
92 
93 // 2D STL vectors
94 typedef vector<vector<cv::Point>> CVVVPoint;
95 typedef vector<vector<cv::Point2i>> CVVVPoint2i;
96 typedef vector<vector<cv::Point2f>> CVVVPoint2f;
97 typedef vector<vector<cv::Point2d>> CVVVPoint2d;
98 typedef vector<vector<cv::Point3i>> CVVVPoint3i;
99 typedef vector<vector<cv::Point3f>> CVVVPoint3f;
100 typedef vector<vector<cv::Point3d>> CVVVPoint3d;
101 typedef vector<vector<cv::DMatch>> CVVVDMatch;
102 typedef vector<vector<cv::KeyPoint>> CVVVKeyPoint;
103 //-----------------------------------------------------------------------------
104 #endif // CVTYPEDEFS_H
vector< cv::Vec2b > CVVVec2b
Definition: CVTypedefs.h:81
cv::Vec3d CVVec3d
Definition: CVTypedefs.h:53
cv::Vec4f CVVec4f
Definition: CVTypedefs.h:54
cv::Point3f CVPoint3f
Definition: CVTypedefs.h:45
cv::Point2i CVPoint2i
Definition: CVTypedefs.h:42
vector< vector< cv::KeyPoint > > CVVVKeyPoint
Definition: CVTypedefs.h:102
cv::Point2f CVPoint2f
Definition: CVTypedefs.h:43
vector< cv::Point3f > CVVPoint3f
Definition: CVTypedefs.h:79
vector< vector< cv::Point2i > > CVVVPoint2i
Definition: CVTypedefs.h:95
cv::Vec2d CVVec2d
Definition: CVTypedefs.h:51
vector< cv::Vec3f > CVVVec3f
Definition: CVTypedefs.h:85
cv::InputArray CVInputArray
Definition: CVTypedefs.h:63
cv::Rect2f CVRect2f
Definition: CVTypedefs.h:40
cv::face::Facemark CVFacemark
Definition: CVTypedefs.h:70
cv::OutputArray CVOutputArray
Definition: CVTypedefs.h:64
vector< cv::Vec4f > CVVVec4f
Definition: CVTypedefs.h:86
cv::CascadeClassifier CVCascadeClassifier
Definition: CVTypedefs.h:66
vector< cv::Vec4b > CVVVec4b
Definition: CVTypedefs.h:83
cv::Matx44f CVMatx44f
Definition: CVTypedefs.h:59
cv::FileStorage CVFileStorage
Definition: CVTypedefs.h:61
cv::Matx33f CVMatx33f
Definition: CVTypedefs.h:58
vector< cv::Matx33f > CVVMatx33f
Definition: CVTypedefs.h:91
vector< cv::Matx44f > CVVMatx44f
Definition: CVTypedefs.h:90
cv::Point3d CVPoint3d
Definition: CVTypedefs.h:46
vector< cv::Point3d > CVVPoint3d
Definition: CVTypedefs.h:80
vector< vector< cv::Point3i > > CVVVPoint3i
Definition: CVTypedefs.h:98
cv::DMatch CVDMatch
Definition: CVTypedefs.h:62
cv::VideoCapture CVVideoCapture
Definition: CVTypedefs.h:68
vector< vector< cv::Point2d > > CVVVPoint2d
Definition: CVTypedefs.h:97
cv::Vec3f CVVec3f
Definition: CVTypedefs.h:52
cv::Size2f CVSize2f
Definition: CVTypedefs.h:57
cv::Vec2b CVVec2b
Definition: CVTypedefs.h:47
cv::Size2i CVSize2i
Definition: CVTypedefs.h:56
vector< cv::Vec3b > CVVVec3b
Definition: CVTypedefs.h:82
vector< cv::Size > CVVSize
Definition: CVTypedefs.h:87
cv::Vec4b CVVec4b
Definition: CVTypedefs.h:49
vector< vector< cv::DMatch > > CVVVDMatch
Definition: CVTypedefs.h:101
cv::KeyPoint CVKeyPoint
Definition: CVTypedefs.h:60
cv::Rect CVRect
Definition: CVTypedefs.h:39
cv::Size CVSize
Definition: CVTypedefs.h:55
cv::Mat CVMat
Definition: CVTypedefs.h:38
cv::Vec3b CVVec3b
Definition: CVTypedefs.h:48
vector< cv::Vec2f > CVVVec2f
Definition: CVTypedefs.h:84
vector< vector< cv::Point3d > > CVVVPoint3d
Definition: CVTypedefs.h:100
vector< cv::Point2f > CVVPoint2f
Definition: CVTypedefs.h:77
vector< cv::DMatch > CVVDMatch
Definition: CVTypedefs.h:89
vector< cv::Rect > CVVRect
Definition: CVTypedefs.h:74
cv::Point2d CVPoint2d
Definition: CVTypedefs.h:44
cv::Point CVPoint
Definition: CVTypedefs.h:41
vector< vector< cv::Point3f > > CVVVPoint3f
Definition: CVTypedefs.h:99
vector< cv::Mat > CVVMat
Definition: CVTypedefs.h:73
vector< cv::Point > CVVPoint
Definition: CVTypedefs.h:75
vector< cv::KeyPoint > CVVKeyPoint
Definition: CVTypedefs.h:88
vector< vector< cv::Point > > CVVVPoint
Definition: CVTypedefs.h:94
vector< vector< cv::Point2f > > CVVVPoint2f
Definition: CVTypedefs.h:96
cv::Feature2D CVFeature2D
Definition: CVTypedefs.h:65
vector< cv::Point2d > CVVPoint2d
Definition: CVTypedefs.h:78
cv::Vec2f CVVec2f
Definition: CVTypedefs.h:50
vector< cv::Point2i > CVVPoint2i
Definition: CVTypedefs.h:76