MYNT EYE SDK  v1.8
https://www.slightech.com/camera
mynteye::CalibrationParameters Struct Reference

Intrinsic parameters of each cameras and extrinsic (translation and rotation). More...

Public Member Functions

 CalibrationParameters ()
 Constructor. More...
 
 CalibrationParameters (const cv::Mat &M1, const cv::Mat &D1, const cv::Mat &M2, const cv::Mat &D2, const cv::Mat &R, const cv::Mat &T)
 Constructor. More...
 
 ~CalibrationParameters ()
 Destructor. More...
 
ErrorCode Load (const std::string &filepath)
 Loads the calibration parameters from a file. More...
 
ErrorCode Load (const std::string &intrinsic_filepath, const std::string &extrinsic_filepath)
 Loads the calibration parameters from two different file. More...
 
ErrorCode Save (const std::string &filepath)
 Saves the calibration parameters into a file. More...
 

Public Attributes

cv::Mat M1
 Input/output left camera matrix. More...
 
cv::Mat D1
 Input/output lens distortion coefficients for left camera. More...
 
cv::Mat M2
 Input/output right camera matrix. More...
 
cv::Mat D2
 Input/output lens distortion coefficients for right camera. More...
 
cv::Mat R
 Output rotation matrix between left and right camera coordinate systems. More...
 
cv::Mat T
 Output translation vector between the coordinate systems of the cameras. More...
 

Detailed Description

Intrinsic parameters of each cameras and extrinsic (translation and rotation).

Constructor & Destructor Documentation

◆ CalibrationParameters() [1/2]

mynteye::CalibrationParameters::CalibrationParameters ( )

Constructor.

◆ CalibrationParameters() [2/2]

mynteye::CalibrationParameters::CalibrationParameters ( const cv::Mat &  M1,
const cv::Mat &  D1,
const cv::Mat &  M2,
const cv::Mat &  D2,
const cv::Mat &  R,
const cv::Mat &  T 
)

Constructor.

◆ ~CalibrationParameters()

mynteye::CalibrationParameters::~CalibrationParameters ( )

Destructor.

Member Function Documentation

◆ Load() [1/2]

ErrorCode mynteye::CalibrationParameters::Load ( const std::string &  filepath)

Loads the calibration parameters from a file.

Parameters
filepaththe file path from which the parameters will be loaded.
Returns
SUCCESS if ok, otherwise error.

◆ Load() [2/2]

ErrorCode mynteye::CalibrationParameters::Load ( const std::string &  intrinsic_filepath,
const std::string &  extrinsic_filepath 
)

Loads the calibration parameters from two different file.

Parameters
intrinsic_filepaththe file path from which the intrinsic parameters will be loaded.
extrinsic_filepaththe file path from which the extrinsic parameters will be loaded.
Returns
SUCCESS if ok, otherwise error.

◆ Save()

ErrorCode mynteye::CalibrationParameters::Save ( const std::string &  filepath)

Saves the calibration parameters into a file.

Parameters
filepaththe file path in which the parameters will be stored.
Returns
SUCCESS if ok, otherwise error.

Member Data Documentation

◆ D1

cv::Mat mynteye::CalibrationParameters::D1

Input/output lens distortion coefficients for left camera.

See also
distCoeffs1 parameter of stereoCalibrate()

◆ D2

cv::Mat mynteye::CalibrationParameters::D2

Input/output lens distortion coefficients for right camera.

See also
distCoeffs2 parameter of stereoCalibrate()

◆ M1

cv::Mat mynteye::CalibrationParameters::M1

Input/output left camera matrix.

See also
cameraMatrix1 parameter of stereoCalibrate()

◆ M2

cv::Mat mynteye::CalibrationParameters::M2

Input/output right camera matrix.

See also
cameraMatrix1 parameter of stereoCalibrate()

◆ R

cv::Mat mynteye::CalibrationParameters::R

Output rotation matrix between left and right camera coordinate systems.

See also
R parameter of stereoCalibrate()

◆ T

cv::Mat mynteye::CalibrationParameters::T

Output translation vector between the coordinate systems of the cameras.

See also
T parameter of stereoCalibrate()