Table of Contents

Method ProjectPoints

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ProjectPoints(InputArray, OutputArray, InputArray, InputArray, InputArray, InputArray, double, OutputArray)

Projects points using fisheye model.

The function 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 coordinates(as functions of all the input parameters) with respect to the particular parameters, intrinsic and/or extrinsic.

public static void ProjectPoints(InputArray objectPoints, OutputArray imagePoints, InputArray rvec, InputArray tvec, InputArray k, InputArray d, double alpha = 0, OutputArray jacobian = default)

Parameters

objectPoints InputArray

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

imagePoints OutputArray

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

rvec InputArray
tvec InputArray
k InputArray

Camera matrix

d InputArray

Input vector of distortion coefficients

alpha double

The skew coefficient.

jacobian OutputArray

Optional output 2Nx15 jacobian matrix of derivatives of image points with respect to components of the focal lengths, coordinates of the principal point, distortion coefficients, rotation vector, translation vector, and the skew.In the old interface different components of the jacobian are returned via different output parameters.