initUndistortRectifyMapAsync function
        
Future<(Mat, Mat)> 
initUndistortRectifyMapAsync(
    
- InputArray cameraMatrix,
 - InputArray distCoeffs,
 - InputArray R,
 - InputArray newCameraMatrix,
 - (int, int) size,
 - int m1type, {
 - OutputArray? map1,
 - OutputArray? map2,
 
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, {
  OutputArray? map1,
  OutputArray? map2,
}) async {
  map1 ??= Mat.empty();
  map2 ??= Mat.empty();
  return cvRunAsync0<(Mat, Mat)>(
    (callback) => ccalib3d.cv_initUndistortRectifyMap(
      cameraMatrix.ref,
      distCoeffs.ref,
      R.ref,
      newCameraMatrix.ref,
      size.cvd.ref,
      m1type,
      map1!.ref,
      map2!.ref,
      callback,
    ),
    (c) => c.complete((map1!, map2!)),
  );
}