undistortImagePoints function

Mat undistortImagePoints(
  1. InputArray src,
  2. InputArray cameraMatrix,
  3. InputArray distCoeffs, {
  4. OutputArray? dst,
  5. TermCriteria? criteria,
})

Implementation

Mat undistortImagePoints(
  InputArray src,
  InputArray cameraMatrix,
  InputArray distCoeffs, {
  OutputArray? dst,
  TermCriteria? criteria,
}) {
  dst ??= Mat.empty();
  criteria ??= TermCriteria(TERM_MAX_ITER + TERM_EPS, 5, 0.01);
  cvRun(
    () => ccalib3d.cv_undistortImagePoints(
      src.ref,
      dst!.ref,
      cameraMatrix.ref,
      distCoeffs.ref,
      criteria!.ref,
      ffi.nullptr,
    ),
  );
  return dst;
}