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
objectPointsInputArrayArray of object points, 1xN/Nx1 3-channel (or vector<Point3f> ), where N is the number of points in the view.
imagePointsOutputArrayOutput array of image points, 2xN/Nx2 1-channel or 1xN/Nx1 2-channel, or vector<Point2f>.
rvecInputArraytvecInputArraykInputArrayCamera matrix
dInputArrayInput vector of distortion coefficients
alphadoubleThe skew coefficient.
jacobianOutputArrayOptional 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.