undistortImageAsync static method

Future<Mat> undistortImageAsync(
  1. InputArray distorted,
  2. InputArray K,
  3. InputArray D, {
  4. OutputArray? undistorted,
  5. InputArray? knew,
  6. (int, int) newSize = (0, 0),
})

async version of undistortImage

Implementation

static Future<Mat> undistortImageAsync(
  InputArray distorted,
  InputArray K,
  InputArray D, {
  OutputArray? undistorted,
  InputArray? knew,
  (int, int) newSize = (0, 0),
}) async {
  knew ??= Mat.empty();
  undistorted ??= Mat.empty();
  return cvRunAsync0<Mat>(
    (callback) => ccalib3d.cv_fisheye_undistortImage_1(
      distorted.ref,
      undistorted!.ref,
      K.ref,
      D.ref,
      knew!.ref,
      newSize.cvd.ref,
      callback,
    ),
    (c) => c.complete(undistorted),
  );
}