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... | |
Intrinsic parameters of each cameras and extrinsic (translation and rotation).
mynteye::CalibrationParameters::CalibrationParameters | ( | ) |
Constructor.
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.
mynteye::CalibrationParameters::~CalibrationParameters | ( | ) |
Destructor.
ErrorCode mynteye::CalibrationParameters::Load | ( | const std::string & | filepath | ) |
Loads the calibration parameters from a file.
filepath | the file path from which the parameters will be loaded. |
ErrorCode mynteye::CalibrationParameters::Load | ( | const std::string & | intrinsic_filepath, |
const std::string & | extrinsic_filepath | ||
) |
Loads the calibration parameters from two different file.
intrinsic_filepath | the file path from which the intrinsic parameters will be loaded. |
extrinsic_filepath | the file path from which the extrinsic parameters will be loaded. |
ErrorCode mynteye::CalibrationParameters::Save | ( | const std::string & | filepath | ) |
Saves the calibration parameters into a file.
filepath | the file path in which the parameters will be stored. |
cv::Mat mynteye::CalibrationParameters::D1 |
Input/output lens distortion coefficients for left camera.
cv::Mat mynteye::CalibrationParameters::D2 |
Input/output lens distortion coefficients for right camera.
cv::Mat mynteye::CalibrationParameters::M1 |
Input/output left camera matrix.
cv::Mat mynteye::CalibrationParameters::M2 |
Input/output right camera matrix.
cv::Mat mynteye::CalibrationParameters::R |
Output rotation matrix between left and right camera coordinate systems.
cv::Mat mynteye::CalibrationParameters::T |
Output translation vector between the coordinate systems of the cameras.