projectPointsAsync function
Future<(Mat, Mat)>
projectPointsAsync(
- 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
Future<(Mat imagePoints, Mat jacobian)> projectPointsAsync(
InputArray objectPoints,
InputArray rvec,
InputArray tvec,
InputArray cameraMatrix,
InputArray distCoeffs, {
OutputArray? imagePoints,
OutputArray? jacobian,
double aspectRatio = 0,
}) async {
imagePoints ??= Mat.empty();
jacobian ??= Mat.empty();
return cvRunAsync0(
(callback) => ccalib3d.cv_projectPoints(
objectPoints.ref,
rvec.ref,
tvec.ref,
cameraMatrix.ref,
distCoeffs.ref,
imagePoints!.ref,
jacobian!.ref,
aspectRatio,
callback,
),
(c) => c.complete((imagePoints!, jacobian!)),
);
}