findChessboardCornersSBWithMeta function

(bool, VecPoint2f, Mat) findChessboardCornersSBWithMeta(
  1. InputArray image,
  2. (int, int) patternSize,
  3. int flags, {
  4. VecPoint2f? corners,
  5. OutputArray? meta,
})

Implementation

(bool, VecPoint2f corners, Mat meta) findChessboardCornersSBWithMeta(
  InputArray image,
  (int, int) patternSize,
  int flags, {
  VecPoint2f? corners,
  OutputArray? meta,
}) {
  corners ??= VecPoint2f();
  meta ??= Mat.empty();
  final b = calloc<ffi.Bool>();
  cvRun(
    () => ccalib3d.cv_findChessboardCornersSB_1(
      image.ref,
      patternSize.cvd.ref,
      corners!.ptr,
      flags,
      meta!.ref,
      b,
      ffi.nullptr,
    ),
  );
  final rval = b.value;
  calloc.free(b);
  return (rval, corners, meta);
}