Table of Contents

Method UndistortPoints

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

UndistortPoints(InputArray, OutputArray, InputArray, InputArray, InputArray, InputArray)

Undistorts 2D points using fisheye model

public static void UndistortPoints(InputArray distorted, OutputArray undistorted, InputArray k, InputArray d, InputArray r = default, InputArray p = default)

Parameters

distorted InputArray

Array of object points, 1xN/Nx1 2-channel (or vector<Point2f> ), where N is the number of points in the view.

undistorted OutputArray

Output array of image points, 1xN/Nx1 2-channel, or vector>Point2f> .

k InputArray

Camera matrix

d InputArray

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

r InputArray

Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel

p InputArray

New camera matrix (3x3) or new projection matrix (3x4)