estimateNewCameraMatrixForUndistortRectifyAsync static method

Future<Mat> estimateNewCameraMatrixForUndistortRectifyAsync(
  1. InputArray K,
  2. InputArray D,
  3. (int, int) imageSize,
  4. InputArray R, {
  5. OutputArray? P,
  6. double balance = 0.0,
  7. (int, int) newSize = (0, 0),
  8. double fovScale = 1.0,
})

Implementation

static Future<Mat> estimateNewCameraMatrixForUndistortRectifyAsync(
  InputArray K,
  InputArray D,
  (int, int) imageSize,
  InputArray R, {
  OutputArray? P,
  double balance = 0.0,
  (int, int) newSize = (0, 0),
  double fovScale = 1.0,
}) async {
  P ??= Mat.empty();
  return cvRunAsync0<Mat>(
    (callback) => ccalib3d.cv_fisheye_estimateNewCameraMatrixForUndistortRectify(
      K.ref,
      D.ref,
      imageSize.cvd.ref,
      R.ref,
      P!.ref,
      balance,
      newSize.cvd.ref,
      fovScale,
      callback,
    ),
    (c) => c.complete(P),
  );
}