estimatePoseCharucoBoard function
(bool, Mat, Mat)
estimatePoseCharucoBoard(
- VecPoint2f charucoCorners,
- VecI32 charucoIds,
- CharucoBoard board,
- InputArray cameraMatrix,
- InputArray distCoeffs, {
- Mat? rvec,
- Mat? tvec,
- bool useExtrinsicGuess = false,
Implementation
(bool rval, Mat rvec, Mat tvec) estimatePoseCharucoBoard(
VecPoint2f charucoCorners,
VecI32 charucoIds,
CharucoBoard board,
InputArray cameraMatrix,
InputArray distCoeffs, {
Mat? rvec,
Mat? tvec,
bool useExtrinsicGuess = false,
}) {
final pb = calloc<ffi.Bool>();
rvec ??= Mat.empty();
tvec ??= Mat.empty();
cvRun(
() => ccontrib.cv_aruco_estimatePoseCharucoBoard(
charucoCorners.ref,
charucoIds.ref,
board.ref,
cameraMatrix.ref,
distCoeffs.ref,
rvec!.ref,
tvec!.ref,
useExtrinsicGuess,
pb,
ffi.nullptr,
),
);
final rval = pb.value;
calloc.free(pb);
return (rval, rvec, tvec);
}