Skip to main content

find_homography

Function find_homography 

Source
pub fn find_homography(
    src: &[(f64, f64)],
    dst: &[(f64, f64)],
) -> Option<Matrix3<f64>>
Expand description

Estimate the homography H mapping src points to dst points so that dst ~ H * src (in homogeneous coordinates), normalized to H[(2,2)] = 1.

Returns None if fewer than 4 correspondences are given, the counts differ, or the linear system is degenerate.