projectPoints function
(Mat, Mat)
projectPoints(
- InputArray objectPoints,
- InputArray rvec,
- InputArray tvec,
- InputArray cameraMatrix,
- InputArray distCoeffs, {
- OutputArray? imagePoints,
- OutputArray? jacobian,
- double aspectRatio = 0,
Projects 3D points to an image plane.
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#ga1019495a2c8d1743ed5cc23fa0daff8c
Implementation
(Mat imagePoints, Mat jacobian) projectPoints(
InputArray objectPoints,
InputArray rvec,
InputArray tvec,
InputArray cameraMatrix,
InputArray distCoeffs, {
OutputArray? imagePoints,
OutputArray? jacobian,
double aspectRatio = 0,
}) {
imagePoints ??= Mat.empty();
jacobian ??= Mat.empty();
cvRun(
() => ccalib3d.cv_projectPoints(
objectPoints.ref,
rvec.ref,
tvec.ref,
cameraMatrix.ref,
distCoeffs.ref,
imagePoints!.ref,
jacobian!.ref,
aspectRatio,
ffi.nullptr,
),
);
return (imagePoints, jacobian);
}