Table of Contents

Method DistortPoints

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DistortPoints(InputArray, OutputArray, InputArray, InputArray, double)

Distorts 2D points using fisheye model.

public static void DistortPoints(InputArray undistorted, OutputArray distorted, InputArray k, InputArray d, double alpha = 0)

Parameters

undistorted InputArray

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

distorted OutputArray

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

k InputArray

Camera matrix

d InputArray

Input vector of distortion coefficients

alpha double

The skew coefficient.

DistortPoints(InputArray, OutputArray, InputArray, InputArray, InputArray, double)

Distorts 2D points using the fisheye model. Overload that handles cases when undistorted points were obtained with a non-identity camera matrix (e.g. the output of EstimateNewCameraMatrixForUndistortRectify).

public static void DistortPoints(InputArray undistorted, OutputArray distorted, InputArray kundistorted, InputArray k, InputArray d, double alpha = 0)

Parameters

undistorted InputArray

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

distorted OutputArray

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

kundistorted InputArray

Camera intrinsic matrix used as the new camera matrix for undistortion.

k InputArray

Camera intrinsic matrix.

d InputArray

Input vector of distortion coefficients.

alpha double

The skew coefficient.