undistortImagePoints function
Mat
undistortImagePoints(
- InputArray src,
- InputArray cameraMatrix,
- InputArray distCoeffs, {
- OutputArray? dst,
- TermCriteria? criteria,
Compute undistorted image points position.
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#ga6327c952253fd43f729c4008c2a45c17
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;
}