undistortImage static method
Mat
undistortImage(
- InputArray distorted,
- InputArray K,
- InputArray D, {
- OutputArray? undistorted,
- InputArray? knew,
- (int, int) newSize = (0, 0),
FisheyeUndistortImage transforms an image to compensate for fisheye lens distortion https://docs.opencv.org/3.4/db/d58/group__calib3d__fisheye.html#ga167df4b00a6fd55287ba829fbf9913b9
Implementation
static Mat undistortImage(
InputArray distorted,
InputArray K,
InputArray D, {
OutputArray? undistorted,
InputArray? knew,
(int, int) newSize = (0, 0),
}) {
knew ??= Mat.empty();
undistorted ??= Mat.empty();
cvRun(
() => ccalib3d.cv_fisheye_undistortImage_1(
distorted.ref,
undistorted!.ref,
K.ref,
D.ref,
knew!.ref,
newSize.cvd.ref,
ffi.nullptr,
),
);
return undistorted;
}