Skip to main content

solve_pnp

Function solve_pnp 

Source
pub fn solve_pnp(
    correspondences: &[ObjectImageCorrespondence],
    camera: CameraMatrix3,
) -> VisionResult<AbsolutePose>
Expand description

Estimates an object-to-camera pose from at least four correspondences.

Uses a calibrated DLT initialization followed by Gauss–Newton refinement on the SE(3) tangent space. Four points are accepted for the final refine path when an initial pose is recoverable; RANSAC minimal samples use six points.