Click or drag to resize

Cv2FishEyeUndistortImage Method

Transforms an image to compensate for fisheye lens distortion.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void UndistortImage(
	InputArray distorted,
	OutputArray undistorted,
	InputArray k,
	InputArray d,
	InputArray knew = null,
	Size newSize = null
)

Parameters

distorted
Type: OpenCvSharpInputArray
image with fisheye lens distortion.
undistorted
Type: OpenCvSharpOutputArray
Output image with compensated fisheye lens distortion.
k
Type: OpenCvSharpInputArray
Camera matrix
d
Type: OpenCvSharpInputArray
Input vector of distortion coefficients (k_1, k_2, k_3, k_4).
knew (Optional)
Type: OpenCvSharpInputArray
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 (Optional)
Type: OpenCvSharpSize

[Missing <param name="newSize"/> documentation for "M:OpenCvSharp.Cv2.FishEye.UndistortImage(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.Size)"]

See Also