| Cv2ProjectPoints Method (IEnumerablePoint3f, Double, Double, Double, Double, Point2f, Double, Double) |
projects points from the model coordinate space to the image coordinates.
Also computes derivatives of the image coordinates w.r.t the intrinsic
and extrinsic camera parameters
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void ProjectPoints(
IEnumerable<Point3f> objectPoints,
double[] rvec,
double[] tvec,
double[,] cameraMatrix,
double[] distCoeffs,
out Point2f[] imagePoints,
out double[,] jacobian,
double aspectRatio = 0
)
Public Shared Sub ProjectPoints (
objectPoints As IEnumerable(Of Point3f),
rvec As Double(),
tvec As Double(),
cameraMatrix As Double(,),
distCoeffs As Double(),
<OutAttribute> ByRef imagePoints As Point2f(),
<OutAttribute> ByRef jacobian As Double(,),
Optional aspectRatio As Double = 0
)
public:
static void ProjectPoints(
IEnumerable<Point3f>^ objectPoints,
array<double>^ rvec,
array<double>^ tvec,
array<double,2>^ cameraMatrix,
array<double>^ distCoeffs,
[OutAttribute] array<Point2f>^% imagePoints,
[OutAttribute] array<double,2>^% jacobian,
double aspectRatio = 0
)
static member ProjectPoints :
objectPoints : IEnumerable<Point3f> *
rvec : float[] *
tvec : float[] *
cameraMatrix : float[,] *
distCoeffs : float[] *
imagePoints : Point2f[] byref *
jacobian : float[,] byref *
?aspectRatio : float
(* Defaults:
let _aspectRatio = defaultArg aspectRatio 0
*)
-> unit
Parameters
- objectPoints
- Type: System.Collections.GenericIEnumerablePoint3f
Array of object points, 3xN/Nx3 1-channel or
1xN/Nx1 3-channel, where N is the number of points in the view. - rvec
- Type: SystemDouble
Rotation vector (3x1). - tvec
- Type: SystemDouble
Translation vector (3x1). - cameraMatrix
- Type: SystemDouble
Camera matrix (3x3) - distCoeffs
- Type: SystemDouble
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. - imagePoints
- Type: OpenCvSharpPoint2f
Output array of image points, 2xN/Nx2 1-channel
or 1xN/Nx1 2-channel - jacobian
- Type: SystemDouble
Optional output 2Nx(10 + numDistCoeffs) jacobian matrix
of derivatives of image points with respect to components of the rotation vector,
translation vector, focal lengths, coordinates of the principal point and
the distortion coefficients. In the old interface different components of
the jacobian are returned via different output parameters. - aspectRatio (Optional)
- Type: SystemDouble
Optional “fixed aspect ratio” parameter.
If the parameter is not 0, the function assumes that the aspect ratio (fx/fy)
is fixed and correspondingly adjusts the jacobian matrix.
See Also