MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / CameraCalibration

Class CameraCalibration

pose_graph/include/common/Definitions.h:124–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122};
123
124struct CameraCalibration {
125 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
126 Eigen::Matrix<double, 4, 4> T_imu_cam0_; ///< Transformation from camera to sensor (IMU) frame.
127 Eigen::Vector2i image_dimension_; ///< Image dimension. [pixels]
128 cv::Mat distortion_coefficients_; ///< Distortion Coefficients.
129 Eigen::Vector2d focal_length_; ///< Focal length.
130 Eigen::Vector2d principal_point_; ///< Principal point.
131 std::string distortion_type_; ///< Distortion type. ('radialtangential' 'plumb_bob' 'equidistant')
132
133 void print() {
134 std::cout << "CameraCalibration: " << std::endl;
135 std::cout << "T_IMU_Cam0: \n" << T_imu_cam0_ << std::endl;
136 std::cout << "Image dimension: " << image_dimension_.transpose() << std::endl;
137 std::cout << "Distortion Coefficients: \n" << distortion_coefficients_ << std::endl;
138 std::cout << "Focal length: " << focal_length_.transpose() << std::endl;
139 std::cout << "Principal point: " << principal_point_.transpose() << std::endl;
140 std::cout << "Distortion type: " << distortion_type_ << std::endl;
141 }
142};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected