initUndistortRectifyMapAsync function

Future<(Mat, Mat)> initUndistortRectifyMapAsync(
  1. InputArray cameraMatrix,
  2. InputArray distCoeffs,
  3. InputArray R,
  4. InputArray newCameraMatrix,
  5. (int, int) size,
  6. int m1type,
)

InitUndistortRectifyMap computes the joint undistortion and rectification transformation and represents the result in the form of maps for remap

For further details, please see: https://docs.opencv.org/master/d9/d0c/group__calib3d.html#ga7dfb72c9cf9780a347fbe3d1c47e5d5a

Implementation

Future<(Mat, Mat)> initUndistortRectifyMapAsync(
  InputArray cameraMatrix,
  InputArray distCoeffs,
  InputArray R,
  InputArray newCameraMatrix,
  (int, int) size,
  int m1type,
) async =>
    cvRunAsync2<(Mat, Mat)>(
      (callback) => ccalib3d.initUndistortRectifyMap_Async(
        cameraMatrix.ref,
        distCoeffs.ref,
        R.ref,
        newCameraMatrix.ref,
        size.cvd.ref,
        m1type,
        callback,
      ),
      matCompleter2,
    );