projectPointsAsync static method

Future<(Mat, Mat)> projectPointsAsync(
  1. InputArray objectPoints,
  2. InputArray rvec,
  3. InputArray tvec,
  4. InputArray K,
  5. InputArray D, {
  6. OutputArray? imagePoints,
  7. double alpha = 0,
  8. OutputArray? jacobian,
})

async version of projectPoints

Implementation

static Future<(Mat imagePoints, Mat jacobian)> projectPointsAsync(
  InputArray objectPoints,
  InputArray rvec,
  InputArray tvec,
  InputArray K,
  InputArray D, {
  OutputArray? imagePoints,
  double alpha = 0,
  OutputArray? jacobian,
}) async {
  imagePoints ??= Mat.empty();
  jacobian ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccalib3d.cv_fisheye_projectPoints(
      objectPoints.ref,
      imagePoints!.ref,
      rvec.ref,
      tvec.ref,
      K.ref,
      D.ref,
      alpha,
      jacobian!.ref,
      callback,
    ),
    (c) => c.complete((imagePoints!, jacobian!)),
  );
}