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
undistortedInputArrayArray of object points, 1xN/Nx1 2-channel (or vector<Point2f> ), where N is the number of points in the view.
distortedOutputArrayOutput array of image points, 1xN/Nx1 2-channel, or vector<Point2f> .
kInputArrayCamera matrix
dInputArrayInput vector of distortion coefficients
alphadoubleThe 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
undistortedInputArrayArray of object points, 1xN/Nx1 2-channel (or vector<Point2f>), where N is the number of points in the view.
distortedOutputArrayOutput array of image points, 1xN/Nx1 2-channel, or vector<Point2f>.
kundistortedInputArrayCamera intrinsic matrix used as the new camera matrix for undistortion.
kInputArrayCamera intrinsic matrix.
dInputArrayInput vector of distortion coefficients.
alphadoubleThe skew coefficient.