findChessboardCornersSBWithMetaAsync function

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

Implementation

Future<(bool, VecPoint2f corners, Mat meta)> findChessboardCornersSBWithMetaAsync(
  InputArray image,
  (int, int) patternSize,
  int flags, {
  VecPoint2f? corners,
  OutputArray? meta,
}) async {
  corners ??= VecPoint2f();
  meta ??= Mat.empty();
  final b = calloc<ffi.Bool>();
  return cvRunAsync0(
    (callback) => ccalib3d.cv_findChessboardCornersSB_1(
      image.ref,
      patternSize.cvd.ref,
      corners!.ptr,
      flags,
      meta!.ref,
      b,
      callback,
    ),
    (c) {
      final rval = b.value;
      calloc.free(b);
      return c.complete((rval, corners!, meta!));
    },
  );
}