Realm

oa::vision::recover_pose

Recover the relative camera pose (R, t) between views from an essential [3, 3] matrix, matching recoverPose. points1/points2 are the pixel correspondences and camera supplies intrinsics; all four (±t, R | R^W) candidates are triangulated and the cheirality-majority candidate wins, with the mask recording in-front points. Errors Returns an error for malformed inputs or when no candidate yields positive depth.

FnRust public API

Function Documentation

pub fn recover_pose( essential: &Matrix, points1: &Matrix, points2: &Matrix, camera: &Matrix ) -> Result<RecoverPoseResult>
Recover the relative camera pose (R, t) between views from an essential [3, 3] matrix, matching recoverPose. points1/points2 are the pixel correspondences and camera supplies intrinsics; all four (±t, R | R^W) candidates are triangulated and the cheirality-majority candidate wins, with the mask recording in-front points. Errors Returns an error for malformed inputs or when no candidate yields positive depth.