Realm

oa::vision::undistort_rectify_map

Build the forward/undistort rectification coordinate map matching initUndistortRectifyMap for a widthxheight output, returned as the [1, 2, height, width] F32 map consumed by crate::image::remap. rectification is an optional [3, 3] rectifying rotation and projection an optional [3, 3] new camera matrix (defaulting to the input camera). Errors Returns an error for malformed matrices or nonpositive dimensions.

FnRust public API

Function Documentation

pub fn undistort_rectify_map( camera: &Matrix, distortion: &Matrix, rectification: Option<&Matrix>, projection: Option<&Matrix>, width: i32, height: i32 ) -> Result<Matrix>
Build the forward/undistort rectification coordinate map matching initUndistortRectifyMap for a widthxheight output, returned as the [1, 2, height, width] F32 map consumed by crate::image::remap. rectification is an optional [3, 3] rectifying rotation and projection an optional [3, 3] new camera matrix (defaulting to the input camera). Errors Returns an error for malformed matrices or nonpositive dimensions.