30 visionx::StereoCalibration
31 fromAron(visionx::StereoCalibration&
bo, visionx::arondto::StereoCameraCalibration& dto){
34 visionx::MonocularCalibration left;
35 visionx::CameraParameters leftParams;
36 leftParams.width = dto.calibrationLeft.cameraParam.width;
37 leftParams.height = dto.calibrationLeft.cameraParam.height;
38 Eigen::Vector2f pp = dto.calibrationLeft.cameraParam.principalPoint;
41 Eigen::Vector2f fl = dto.calibrationLeft.cameraParam.focalLength;
51 Eigen::Vector3f trans = dto.calibrationLeft.cameraParam.translation;
53 left.cameraParam = leftParams;
56 visionx::MonocularCalibration right;
57 visionx::CameraParameters rightParams;
58 rightParams.width = dto.calibrationRight.cameraParam.width;
59 rightParams.height = dto.calibrationRight.cameraParam.height;
61 Eigen::Vector2f ppr = dto.calibrationRight.cameraParam.principalPoint;
64 Eigen::Vector2f flr = dto.calibrationRight.cameraParam.focalLength;
71 Eigen::Vector3f transr = dto.calibrationRight.cameraParam.translation;
73 right.cameraParam = rightParams;
80 bo.calibrationLeft = left;
81 bo.calibrationRight = right;
87 visionx::arondto::StereoCameraCalibration
88 toAron(visionx::arondto::StereoCameraCalibration& dto, visionx::StereoCalibration&
bo){
90 visionx::arondto::MonocularCameraCalibration left;
91 visionx::arondto::CameraParameters leftParams;
94 leftParams.height =
bo.calibrationLeft.cameraParam.height;
95 leftParams.width =
bo.calibrationLeft.cameraParam.width;
99 leftParams.radialDistortion = visionx::types::Vec();
105 left.cameraParam = leftParams;
107 visionx::arondto::MonocularCameraCalibration right;
108 visionx::arondto::CameraParameters rightParams;
111 rightParams.height =
bo.calibrationRight.cameraParam.height;
112 rightParams.width =
bo.calibrationRight.cameraParam.width;
116 rightParams.radialDistortion = visionx::types::Vec();
122 right.cameraParam = rightParams;
124 auto rectificationHomographyLeft =
bo.rectificationHomographyLeft;
125 auto rectificationHomographyRight =
bo.rectificationHomographyRight;
129 dto.calibrationLeft = left;
130 dto.calibrationRight = right;