Realm

oa::vision::undistort_points

Undistort [u, v] points by iterative inversion of the distortion model, matching undistortPoints. Without projection the result is normalized camera coordinates; with projection (and optional rectification) it is reprojected pixel coordinates. Errors Returns an error for malformed matrices or a singular camera/rectification.

FnRust public API

Function Documentation

pub fn undistort_points( points: &Matrix, camera: &Matrix, distortion: &Matrix, rectification: Option<&Matrix>, projection: Option<&Matrix> ) -> Result<Matrix>
Undistort [u, v] points by iterative inversion of the distortion model, matching undistortPoints. Without projection the result is normalized camera coordinates; with projection (and optional rectification) it is reprojected pixel coordinates. Errors Returns an error for malformed matrices or a singular camera/rectification.