projectPointsAsync function

Future<(Mat, Mat)> projectPointsAsync(
  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

Future<(Mat imagePoints, Mat jacobian)> projectPointsAsync(
  InputArray objectPoints,
  InputArray rvec,
  InputArray tvec,
  InputArray cameraMatrix,
  InputArray distCoeffs, {
  OutputArray? imagePoints,
  OutputArray? jacobian,
  double aspectRatio = 0,
}) async {
  imagePoints ??= Mat.empty();
  jacobian ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccalib3d.cv_projectPoints(
      objectPoints.ref,
      rvec.ref,
      tvec.ref,
      cameraMatrix.ref,
      distCoeffs.ref,
      imagePoints!.ref,
      jacobian!.ref,
      aspectRatio,
      callback,
    ),
    (c) => c.complete((imagePoints!, jacobian!)),
  );
}