distortPoints static method

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

Implementation

static Mat distortPoints(
  InputArray undistorted,
  InputArray K,
  InputArray D, {
  InputOutputArray? Kundistorted,
  OutputArray? distorted,
  double alpha = 0,
}) {
  distorted ??= Mat.empty();

  cvRun(
    () => Kundistorted == null
        ? ccalib3d.cv_fisheye_distortPoints(
            undistorted.ref,
            distorted!.ref,
            K.ref,
            D.ref,
            alpha,
            ffi.nullptr,
          )
        : ccalib3d.cv_fisheye_distortPoints_1(
            undistorted.ref,
            distorted!.ref,
            Kundistorted.ref,
            K.ref,
            D.ref,
            alpha,
            ffi.nullptr,
          ),
  );
  return distorted;
}