undistortAsync function

Future<Mat> undistortAsync(
  1. InputArray src,
  2. InputArray cameraMatrix,
  3. InputArray distCoeffs, {
  4. OutputArray? dst,
  5. InputArray? newCameraMatrix,
})

Implementation

Future<Mat> undistortAsync(
  InputArray src,
  InputArray cameraMatrix,
  InputArray distCoeffs, {
  OutputArray? dst,
  InputArray? newCameraMatrix,
}) async {
  dst ??= Mat.empty();
  newCameraMatrix ??= Mat.empty();
  return cvRunAsync0(
    (callback) => ccalib3d.cv_undistort(
      src.ref,
      dst!.ref,
      cameraMatrix.ref,
      distCoeffs.ref,
      newCameraMatrix!.ref,
      callback,
    ),
    (c) => c.complete(dst!),
  );
}