findChessboardCornersSBAsync function

Future<(bool, VecPoint2f)> findChessboardCornersSBAsync(
  1. InputArray image,
  2. (int, int) patternSize,
  3. int flags, {
  4. VecPoint2f? corners,
})

Implementation

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