Expand description
Pure-Rust camera calibration (port of OpenCV cv::calibrateCamera).
Built bottom-up:
- per-view homography estimation (
find_homography), - initial intrinsics (
init_intrinsics), - initial extrinsics per view (
init_extrinsics), - joint Levenberg-Marquardt refinement of intrinsics, distortion, and
extrinsics (
calibrate_camera).
Structs§
- Calibration
Result - Result of
calibrate_camera. - Corresponding
Point - One object<->image correspondence. The object point must be planar
(
z == 0) for the homography-based initialization. - Extrinsics
- Camera pose of the target plane relative to the camera.
- Initial
Intrinsics - Initial pinhole intrinsics
(fx, fy, cx, cy).
Enums§
Functions§
- calibrate_
camera - Calibrate a pinhole+distortion camera from planar-target correspondences.
- find_
homography - Estimate the homography
Hmappingsrcpoints todstpoints so thatdst ~ H * src(in homogeneous coordinates), normalized toH[(2,2)] = 1. - init_
extrinsics - Recover the pose for one view from intrinsics
kand homographyh. - init_
intrinsics - Estimate initial intrinsics from per-view homographies and the image size.