SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
CVCalibrationEstimatorParams Class Reference

#include <CVTypes.h>

Public Types

enum class  EstimatorMode { ExtractAndCalculate , OnlyCaptureAndSave }
 

Public Member Functions

int calibrationFlags ()
 
void toggleFixPrincipalPoint ()
 
void toggleFixAspectRatio ()
 
void toggleZeroTangentDist ()
 
void toggleRationalModel ()
 
void toggleTiltedModel ()
 
void toggleThinPrismModel ()
 

Public Attributes

bool fixPrincipalPoint = false
 
bool fixAspectRatio = false
 
bool zeroTangentDistortion = false
 
bool calibRationalModel = false
 
bool calibTiltedModel = false
 
bool calibThinPrismModel = false
 
EstimatorMode mode = EstimatorMode::ExtractAndCalculate
 
bool useReleaseObjectMethod = false
 

Detailed Description

Definition at line 16 of file CVTypes.h.

Member Enumeration Documentation

◆ EstimatorMode

Enumerator
ExtractAndCalculate 
OnlyCaptureAndSave 

Definition at line 19 of file CVTypes.h.

20  {
21  ExtractAndCalculate,
22  OnlyCaptureAndSave
23  };

Member Function Documentation

◆ calibrationFlags()

int CVCalibrationEstimatorParams::calibrationFlags ( )
inline

Definition at line 25 of file CVTypes.h.

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  }

◆ toggleFixAspectRatio()

void CVCalibrationEstimatorParams::toggleFixAspectRatio ( )
inline

Definition at line 44 of file CVTypes.h.

◆ toggleFixPrincipalPoint()

void CVCalibrationEstimatorParams::toggleFixPrincipalPoint ( )
inline

Definition at line 43 of file CVTypes.h.

◆ toggleRationalModel()

void CVCalibrationEstimatorParams::toggleRationalModel ( )
inline

Definition at line 46 of file CVTypes.h.

◆ toggleThinPrismModel()

void CVCalibrationEstimatorParams::toggleThinPrismModel ( )
inline

Definition at line 48 of file CVTypes.h.

◆ toggleTiltedModel()

void CVCalibrationEstimatorParams::toggleTiltedModel ( )
inline

Definition at line 47 of file CVTypes.h.

◆ toggleZeroTangentDist()

void CVCalibrationEstimatorParams::toggleZeroTangentDist ( )
inline

Definition at line 45 of file CVTypes.h.

Member Data Documentation

◆ calibRationalModel

bool CVCalibrationEstimatorParams::calibRationalModel = false

Definition at line 53 of file CVTypes.h.

◆ calibThinPrismModel

bool CVCalibrationEstimatorParams::calibThinPrismModel = false

Definition at line 55 of file CVTypes.h.

◆ calibTiltedModel

bool CVCalibrationEstimatorParams::calibTiltedModel = false

Definition at line 54 of file CVTypes.h.

◆ fixAspectRatio

bool CVCalibrationEstimatorParams::fixAspectRatio = false

Definition at line 51 of file CVTypes.h.

◆ fixPrincipalPoint

bool CVCalibrationEstimatorParams::fixPrincipalPoint = false

Definition at line 50 of file CVTypes.h.

◆ mode

EstimatorMode CVCalibrationEstimatorParams::mode = EstimatorMode::ExtractAndCalculate

Definition at line 57 of file CVTypes.h.

◆ useReleaseObjectMethod

bool CVCalibrationEstimatorParams::useReleaseObjectMethod = false

Definition at line 58 of file CVTypes.h.

◆ zeroTangentDistortion

bool CVCalibrationEstimatorParams::zeroTangentDistortion = false

Definition at line 52 of file CVTypes.h.


The documentation for this class was generated from the following file: