undistortAsync function

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

Implementation

Future<Mat> undistortAsync(
  InputArray src,
  InputArray cameraMatrix,
  InputArray distCoeffs, {
  InputArray? newCameraMatrix,
}) async =>
    cvRunAsync(
      (callback) => cffi.undistort_Async(
        src.ref,
        cameraMatrix.ref,
        distCoeffs.ref,
        newCameraMatrix?.ref ?? Mat.empty().ref,
        callback,
      ),
      matCompleter,
    );