Realm

oa::vision::project_points

Project object [x, y, z] points through rvec, tvec, camera, and distortion coefficients (k1, k2, p1, p2[, k3[, k4..]]), matching projectPoints with the radial+tangential model. object is [N, 3], distortion a [k]/[k, 1]/[1, k] vector (empty admitted), and the output is [N, 2] F32. Errors Returns an error for malformed inputs, a non-finite projection, or a zero/negative optical-center denominator.

FnRust public API

Function Documentation

pub fn project_points( object: &Matrix, rvec: &Matrix, tvec: &Matrix, camera: &Matrix, distortion: &Matrix ) -> Result<Matrix>
Project object [x, y, z] points through rvec, tvec, camera, and distortion coefficients (k1, k2, p1, p2[, k3[, k4..]]), matching projectPoints with the radial+tangential model. object is [N, 3], distortion a [k]/[k, 1]/[1, k] vector (empty admitted), and the output is [N, 2] F32. Errors Returns an error for malformed inputs, a non-finite projection, or a zero/negative optical-center denominator.