detectDiamonds method
(VecVecPoint2f, VecVec4i, VecVecPoint2f, VecI32)
detectDiamonds(
- InputArray image, {
- VecVecPoint2f? markerCorners,
- VecI32? markerIds,
Implementation
(VecVecPoint2f diamondCorners, VecVec4i diamondIds, VecVecPoint2f markerCorners, VecI32 markerIds)
detectDiamonds(InputArray image, {VecVecPoint2f? markerCorners, VecI32? markerIds}) {
final diamondCorners = VecVecPoint2f();
final diamondIds = VecVec4i();
markerCorners ??= VecVecPoint2f();
markerIds ??= VecI32();
cvRun(
() => ccontrib.cv_aruco_charucoDetector_detectDiamonds(
ref,
image.ref,
diamondCorners.ptr,
diamondIds.ptr,
markerCorners!.ptr,
markerIds!.ptr,
ffi.nullptr,
),
);
return (diamondCorners, diamondIds, markerCorners, markerIds);
}