SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
CVTypes.h
Go to the documentation of this file.
1 /**
2  * \file CVTypes.h
3  * \date Winter 2019
4  * \remarks Please use clangformat to format the code. See more code style on
5  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
6  * \authors Marcus Hudritsch, Michael Goettlicher
7  * \copyright http://opensource.org/licenses/GPL-3.0
8 */
9 
10 #ifndef CVTYPES_H
11 #define CVTYPES_H
12 
13 #include <opencv2/calib3d.hpp>
14 
15 //-----------------------------------------------------------------------------
17 {
18 public:
19  enum class EstimatorMode
20  {
23  };
24 
26  {
27  int flags = 0;
29  flags |= cv::CALIB_FIX_PRINCIPAL_POINT;
30  if (fixAspectRatio)
31  flags |= cv::CALIB_FIX_ASPECT_RATIO;
33  flags |= cv::CALIB_ZERO_TANGENT_DIST;
35  flags |= cv::CALIB_RATIONAL_MODEL;
36  if (calibTiltedModel)
37  flags |= cv::CALIB_TILTED_MODEL;
39  flags |= cv::CALIB_THIN_PRISM_MODEL;
40 
41  return flags;
42  }
49 
50  bool fixPrincipalPoint = false;
51  bool fixAspectRatio = false;
52  bool zeroTangentDistortion = false;
53  bool calibRationalModel = false;
54  bool calibTiltedModel = false;
55  bool calibThinPrismModel = false;
56 
58  bool useReleaseObjectMethod = false;
59 };
60 //-----------------------------------------------------------------------------
61 enum class CVCameraType
62 {
64  BACKFACING,
65  VIDEOFILE
66 };
67 //-----------------------------------------------------------------------------
68 #endif // CVCALIBRATIONESTIMATORPARAMS_H
CVCameraType
Definition: CVTypes.h:62