undistortPoints static method

Mat undistortPoints(
  1. InputArray distorted,
  2. InputArray K,
  3. InputArray D, {
  4. OutputArray? undistorted,
  5. InputArray? R,
  6. InputArray? P,
})

FisheyeUndistortPoints transforms points to compensate for fisheye lens distortion

For further details, please see: https://docs.opencv.org/master/db/d58/group__calib3d__fisheye.html#gab738cdf90ceee97b2b52b0d0e7511541

Implementation

static Mat undistortPoints(
  InputArray distorted,
  InputArray K,
  InputArray D, {
  OutputArray? undistorted,
  InputArray? R,
  InputArray? P,
}) {
  R ??= Mat.empty();
  P ??= Mat.empty();
  undistorted ??= Mat.empty();
  cvRun(
    () => cffi.Fisheye_UndistortPoints(distorted.ref, undistorted!.ref, K.ref, D.ref, R!.ref, P!.ref),
  );
  return undistorted;
}