solvePnP function
Implementation
(VARP, VARP) solvePnP(
VARP objectPoints,
VARP imagePoints,
VARP cameraMatrix,
VARP distCoeffs, {
bool useExtrinsicGuess = false,
}) {
final pRvec = calloc<c.VARP_t>();
final pTvec = calloc<c.VARP_t>();
c.mnn_cv_solvePnP(
objectPoints.ptr,
imagePoints.ptr,
cameraMatrix.ptr,
distCoeffs.ptr,
useExtrinsicGuess,
pRvec,
pTvec,
);
final rval = (VARP.fromPointer(pRvec.value), VARP.fromPointer(pTvec.value));
calloc.free(pRvec);
calloc.free(pTvec);
return rval;
}