findChessboardCornersSBAsync function

Future<(bool, Mat)> findChessboardCornersSBAsync(
  1. InputArray image,
  2. (int, int) patternSize,
  3. int flags
)

Implementation

Future<(bool, Mat corners)> findChessboardCornersSBAsync(
  InputArray image,
  (int, int) patternSize,
  int flags,
) async =>
    cvRunAsync2(
      (callback) => ccalib3d.findChessboardCornersSB_Async(
        image.ref,
        patternSize.cvd.ref,
        flags,
        callback,
      ),
      (c, p, p1) {
        final rval = p.cast<ffi.Bool>().value;
        calloc.free(p);
        final corners = Mat.fromPointer(p1.cast());
        return c.complete((rval, corners));
      },
    );