Method UndistortImage
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
UndistortImage(InputArray, OutputArray, InputArray, InputArray, InputArray, Size)
Transforms an image to compensate for fisheye lens distortion.
public static void UndistortImage(InputArray distorted, OutputArray undistorted, InputArray k, InputArray d, InputArray knew = default, Size newSize = default)
Parameters
distortedInputArrayimage with fisheye lens distortion.
undistortedOutputArrayOutput image with compensated fisheye lens distortion.
kInputArrayCamera matrix
dInputArrayInput vector of distortion coefficients (k_1, k_2, k_3, k_4).
knewInputArrayCamera matrix of the distorted image. By default, it is the identity matrix but you may additionally scale and shift the result by using a different matrix.
newSizeSize