undistortPointsAsync static method

Future<Mat> undistortPointsAsync(
  1. InputArray distorted,
  2. InputArray K,
  3. InputArray D, {
  4. OutputArray? undistorted,
  5. InputArray? R,
  6. InputArray? P,
})

async version of undistortPoints

Implementation

static Future<Mat> undistortPointsAsync(
  InputArray distorted,
  InputArray K,
  InputArray D, {
  OutputArray? undistorted,
  InputArray? R,
  InputArray? P,
}) async {
  R ??= Mat.empty();
  P ??= Mat.empty();
  undistorted ??= Mat.empty();
  return cvRunAsync0<Mat>(
    (callback) => ccalib3d.cv_fisheye_undistortPoints(
      distorted.ref,
      undistorted!.ref,
      K.ref,
      D.ref,
      R!.ref,
      P!.ref,
      callback,
    ),
    (c) => c.complete(undistorted),
  );
}