Realm

oa::vision::solve_pnp

Solve camera pose from object [x, y, z] world points and image [u, v] projections under a camera [3, 3] intrinsic matrix. Runs a normalized DLT pose estimate refined by damped Gauss-Newton on the reprojection residuals, matching solvePnP SOLVEPNP_ITERATIVE. object is [N, 3] and image [N, 2] F32 with N >= 6. Errors Returns an error for degenerate inputs, a singular camera matrix, or failure to initialize a nonsingular pose.

FnRust public API

Function Documentation

pub fn solve_pnp( object: &Matrix, image: &Matrix, camera: &Matrix ) -> Result<PnpResult>
Solve camera pose from object [x, y, z] world points and image [u, v] projections under a camera [3, 3] intrinsic matrix. Runs a normalized DLT pose estimate refined by damped Gauss-Newton on the reprojection residuals, matching solvePnP SOLVEPNP_ITERATIVE. object is [N, 3] and image [N, 2] F32 with N >= 6. Errors Returns an error for degenerate inputs, a singular camera matrix, or failure to initialize a nonsingular pose.