CvInvokeProjectPoints Method (IInputArray, IInputArray, IInputArray, IInputArray, IInputArray, IOutputArray, IOutputArray, Double) |
http://www.emgu.com
Computes projections of 3D points to the image plane given intrinsic and extrinsic camera parameters. Optionally, the function computes jacobians - matrices of partial derivatives of image points as functions of all the input parameters w.r.t. the particular parameters, intrinsic and/or extrinsic. The jacobians are used during the global optimization in cvCalibrateCamera2 and cvFindExtrinsicCameraParams2. The function itself is also used to compute back-projection error for with current intrinsic and extrinsic parameters.
Note, that with intrinsic and/or extrinsic parameters set to special values, the function can be used to compute just extrinsic transformation or just intrinsic transformation (i.e. distortion of a sparse set of points).
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void ProjectPoints(
IInputArray objectPoints,
IInputArray rvec,
IInputArray tvec,
IInputArray cameraMatrix,
IInputArray distCoeffs,
IOutputArray imagePoints,
IOutputArray jacobian = null,
double aspectRatio = 0
)
Public Shared Sub ProjectPoints (
objectPoints As IInputArray,
rvec As IInputArray,
tvec As IInputArray,
cameraMatrix As IInputArray,
distCoeffs As IInputArray,
imagePoints As IOutputArray,
Optional jacobian As IOutputArray = Nothing,
Optional aspectRatio As Double = 0
)
public:
static void ProjectPoints(
IInputArray^ objectPoints,
IInputArray^ rvec,
IInputArray^ tvec,
IInputArray^ cameraMatrix,
IInputArray^ distCoeffs,
IOutputArray^ imagePoints,
IOutputArray^ jacobian = nullptr,
double aspectRatio = 0
)
static member ProjectPoints :
objectPoints : IInputArray *
rvec : IInputArray *
tvec : IInputArray *
cameraMatrix : IInputArray *
distCoeffs : IInputArray *
imagePoints : IOutputArray *
?jacobian : IOutputArray *
?aspectRatio : float
(* Defaults:
let _jacobian = defaultArg jacobian null
let _aspectRatio = defaultArg aspectRatio 0
*)
-> unit
Parameters
- objectPoints
- Type: Emgu.CVIInputArray
The array of object points, 3xN or Nx3, where N is the number of points in the view - rvec
- Type: Emgu.CVIInputArray
The rotation vector, 1x3 or 3x1 - tvec
- Type: Emgu.CVIInputArray
The translation vector, 1x3 or 3x1 - cameraMatrix
- Type: Emgu.CVIInputArray
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]. - distCoeffs
- Type: Emgu.CVIInputArray
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2]. If it is IntPtr.Zero, all distortion coefficients are considered 0's - imagePoints
- Type: Emgu.CVIOutputArray
The output array of image points, 2xN or Nx2, where N is the total number of points in the view - jacobian (Optional)
- Type: Emgu.CVIOutputArray
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
Aspect ratio
See Also