| Cv2UndistortPoints Method |
Computes the ideal point coordinates from the observed point coordinates.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void UndistortPoints(
InputArray src,
OutputArray dst,
InputArray cameraMatrix,
InputArray distCoeffs,
InputArray r = null,
InputArray p = null
)
Public Shared Sub UndistortPoints (
src As InputArray,
dst As OutputArray,
cameraMatrix As InputArray,
distCoeffs As InputArray,
Optional r As InputArray = Nothing,
Optional p As InputArray = Nothing
)
public:
static void UndistortPoints(
InputArray^ src,
OutputArray^ dst,
InputArray^ cameraMatrix,
InputArray^ distCoeffs,
InputArray^ r = nullptr,
InputArray^ p = nullptr
)
static member UndistortPoints :
src : InputArray *
dst : OutputArray *
cameraMatrix : InputArray *
distCoeffs : InputArray *
?r : InputArray *
?p : InputArray
(* Defaults:
let _r = defaultArg r null
let _p = defaultArg p null
*)
-> unit
Parameters
- src
- Type: OpenCvSharpInputArray
Observed point coordinates, 1xN or Nx1 2-channel (CV_32FC2 or CV_64FC2). - dst
- Type: OpenCvSharpOutputArray
Output ideal point coordinates after undistortion and reverse perspective transformation.
If matrix P is identity or omitted, dst will contain normalized point coordinates. - cameraMatrix
- Type: OpenCvSharpInputArray
Camera matrix - distCoeffs
- Type: OpenCvSharpInputArray
Input vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements.
If the vector is null, the zero distortion coefficients are assumed. - r (Optional)
- Type: OpenCvSharpInputArray
Rectification transformation in the object space (3x3 matrix).
R1 or R2 computed by stereoRectify() can be passed here.
If the matrix is empty, the identity transformation is used. - p (Optional)
- Type: OpenCvSharpInputArray
New camera matrix (3x3) or new projection matrix (3x4).
P1 or P2 computed by stereoRectify() can be passed here. If the matrix is empty,
the identity new camera matrix is used.
See Also