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,
]) {
  final p = outImg?.ptr ?? calloc<ccontrib.Mat>();
  cvRun(
    () => ccontrib.ArucoGenerateImageMarker(
      dictionaryId.value,
      id,
      sidePixels,
      borderBits,
      p,
    ),
  );
  return outImg ?? Mat.fromPointer(p);
}