undistortPoints static method
Mat
undistortPoints(
- InputArray distorted,
- InputArray K,
- InputArray D, {
- OutputArray? undistorted,
- InputArray? R,
- 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(
() => ccalib3d.cv_fisheye_undistortPoints(
distorted.ref,
undistorted!.ref,
K.ref,
D.ref,
R!.ref,
P!.ref,
ffi.nullptr,
),
);
return undistorted;
}