Realm

oa::image::perspective_transform

Solve the 3x3 perspective transform mapping four [x, y] source points to four destination points, matching getPerspectiveTransform. Both inputs must be [4, 2] F32 matrices. Errors Returns an error unless both inputs are [4, 2] F32 matrices yielding a nonsingular 8x8 system (no three collinear source points).

FnRust public API

Function Documentation

pub fn perspective_transform( source: &Matrix, destination: &Matrix ) -> Result<Matrix>
Solve the 3x3 perspective transform mapping four [x, y] source points to four destination points, matching getPerspectiveTransform. Both inputs must be [4, 2] F32 matrices. Errors Returns an error unless both inputs are [4, 2] F32 matrices yielding a nonsingular 8x8 system (no three collinear source points).