31 fromIce(visionx::arondto::CameraParameters& aron,
const visionx::CameraParameters& ice)
35 aron.width = ice.width;
36 aron.height = ice.height;
39 aron.radialDistortion = std::vector<float>{ice.distortion[0], ice.distortion[1]};
40 aron.tangentialDistortion = std::vector<float>{ice.distortion[2], ice.distortion[3]};
48 toIce(
const visionx::arondto::CameraParameters& aron, visionx::CameraParameters& ice)
52 ice.width = aron.width;
53 ice.height = aron.height;
54 ice.distortion = std::vector<float>{aron.radialDistortion[0],
55 aron.radialDistortion[1],
56 aron.tangentialDistortion[0],
57 aron.tangentialDistortion[1]};
65 fromIce(visionx::arondto::MonocularCameraCalibration& aron,
66 const visionx::MonocularCalibration& ice)
68 fromIce(aron.cameraParam, ice.cameraParam);
72 toIce(
const visionx::arondto::MonocularCameraCalibration& aron,
73 visionx::MonocularCalibration& ice)
75 toIce(aron.cameraParam, ice.cameraParam);
79 fromIce(visionx::arondto::StereoCameraCalibration& aron,
const visionx::StereoCalibration& ice)
81 fromIce(aron.calibrationLeft, ice.calibrationLeft);
82 fromIce(aron.calibrationRight, ice.calibrationRight);
84 ice.rectificationHomographyLeft);
86 ice.rectificationHomographyRight);
90 toIce(
const visionx::arondto::StereoCameraCalibration& aron, visionx::StereoCalibration& ice)
92 toIce(aron.calibrationLeft, ice.calibrationLeft);
93 toIce(aron.calibrationRight, ice.calibrationRight);
95 ice.rectificationHomographyLeft);
97 ice.rectificationHomographyRight);