arucoGenerateImageMarker function

Mat arucoGenerateImageMarker(
  1. PredefinedDictionaryType dictionaryId,
  2. int id,
  3. int sidePixels,
  4. int borderBits, [
  5. Mat? outImg,
])

Implementation

Mat arucoGenerateImageMarker(
  PredefinedDictionaryType dictionaryId,
  int id,
  int sidePixels,
  int borderBits, [
  Mat? outImg,
]) {
  outImg ??= Mat.empty();
  cvRun(
    () => ccontrib.cv_aruco_generateImageMarker(
      dictionaryId.value,
      id,
      sidePixels,
      borderBits,
      outImg!.ref,
      ffi.nullptr,
    ),
  );
  return outImg;
}