Realm

oa::vision::find_homography

Estimate the 3x3 homography mapping source [x, y] points to destination points. LeastSquares runs normalized DLT over all points; Ransac draws max_iterations seeded 4-point samples, keeps the largest consensus set under ransac_threshold symmetric transfer error (pixels), and refits on its inliers. Both inputs are [N, 2] F32 with N >= 4. Errors Returns an error for mismatched/degenerate inputs, a nonpositive threshold or iteration bound, or when no nonsingular model exists.

FnRust public API

Function Documentation

pub fn find_homography( source: &Matrix, destination: &Matrix, method: EstimationMethod, ransac_threshold: f32, max_iterations: i32, seed: u64 ) -> Result<HomographyResult>
Estimate the 3x3 homography mapping source [x, y] points to destination points. LeastSquares runs normalized DLT over all points; Ransac draws max_iterations seeded 4-point samples, keeps the largest consensus set under ransac_threshold symmetric transfer error (pixels), and refits on its inliers. Both inputs are [N, 2] F32 with N >= 4. Errors Returns an error for mismatched/degenerate inputs, a nonpositive threshold or iteration bound, or when no nonsingular model exists.