distortPointsAsync static method

Future<Mat> distortPointsAsync(
  1. InputArray undistorted,
  2. InputArray K,
  3. InputArray D, {
  4. InputOutputArray? Kundistorted,
  5. OutputArray? distorted,
  6. double alpha = 0,
})

async version of distortPoints

Implementation

static Future<Mat> distortPointsAsync(
  InputArray undistorted,
  InputArray K,
  InputArray D, {
  InputOutputArray? Kundistorted,
  OutputArray? distorted,
  double alpha = 0,
}) async {
  distorted ??= Mat.empty();

  return cvRunAsync0(
    (callback) => Kundistorted == null
        ? ccalib3d.cv_fisheye_distortPoints(
            undistorted.ref,
            distorted!.ref,
            K.ref,
            D.ref,
            alpha,
            callback,
          )
        : ccalib3d.cv_fisheye_distortPoints_1(
            undistorted.ref,
            distorted!.ref,
            Kundistorted.ref,
            K.ref,
            D.ref,
            alpha,
            callback,
          ),
    (c) => c.complete(distorted),
  );
}