Realm

oa::image::estimate_affine_2d

Least-squares estimate the 2x3 affine transform mapping source points to destination points, matching estimateAffine2D without refinement. Both inputs must be [N, 2] F32 matrices with N >= 3 equal rows. Errors Returns an error unless both inputs share an [N, 2] F32 shape with N >= 3 and the normal equations are nonsingular.

FnRust public API

Function Documentation

pub fn estimate_affine_2d( source: &Matrix, destination: &Matrix ) -> Result<Matrix>
Least-squares estimate the 2x3 affine transform mapping source points to destination points, matching estimateAffine2D without refinement. Both inputs must be [N, 2] F32 matrices with N >= 3 equal rows. Errors Returns an error unless both inputs share an [N, 2] F32 shape with N >= 3 and the normal equations are nonsingular.