projectPoints function

(Mat, Mat) projectPoints(
  1. InputArray objectPoints,
  2. InputArray rvec,
  3. InputArray tvec,
  4. InputArray cameraMatrix,
  5. InputArray distCoeffs, {
  6. OutputArray? imagePoints,
  7. OutputArray? jacobian,
  8. double aspectRatio = 0,
})

Implementation

(Mat imagePoints, Mat jacobian) projectPoints(
  InputArray objectPoints,
  InputArray rvec,
  InputArray tvec,
  InputArray cameraMatrix,
  InputArray distCoeffs, {
  OutputArray? imagePoints,
  OutputArray? jacobian,
  double aspectRatio = 0,
}) {
  imagePoints ??= Mat.empty();
  jacobian ??= Mat.empty();
  cvRun(
    () => ccalib3d.cv_projectPoints(
      objectPoints.ref,
      rvec.ref,
      tvec.ref,
      cameraMatrix.ref,
      distCoeffs.ref,
      imagePoints!.ref,
      jacobian!.ref,
      aspectRatio,
      ffi.nullptr,
    ),
  );
  return (imagePoints, jacobian);
}