Realm

oa::vision::solve_pnp_ransac

Robust solve_pnp: draws iterations seeded 6-point samples, keeps the largest consensus set under reprojection_threshold (pixels), refits by damped Gauss-Newton over the inliers, and returns the inlier mask. SOLVEPNP_ITERATIVE-style scoring matches solvePnPRansac. Errors Returns an error for degenerate inputs, nonpositive bounds, or when no sample yields a nonsingular pose.

FnRust public API

Function Documentation

pub fn solve_pnp_ransac( object: &Matrix, image: &Matrix, camera: &Matrix, reprojection_threshold: f32, max_iterations: i32, seed: u64 ) -> Result<PnpRansacResult>
Robust solve_pnp: draws iterations seeded 6-point samples, keeps the largest consensus set under reprojection_threshold (pixels), refits by damped Gauss-Newton over the inliers, and returns the inlier mask. SOLVEPNP_ITERATIVE-style scoring matches solvePnPRansac. Errors Returns an error for degenerate inputs, nonpositive bounds, or when no sample yields a nonsingular pose.