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