Table of Contents

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

distorted InputArray

image with fisheye lens distortion.

undistorted OutputArray

Output image with compensated fisheye lens distortion.

k InputArray

Camera matrix

d InputArray

Input vector of distortion coefficients (k_1, k_2, k_3, k_4).

knew InputArray

Camera 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.

newSize Size