findChessboardCornersSBWithMetaAsync function

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

Implementation

Future<(bool, Mat corners, Mat meta)> findChessboardCornersSBWithMetaAsync(
  InputArray image,
  (int, int) patternSize,
  int flags,
) async =>
    cvRunAsync3(
      (callback) =>
          cffi.findChessboardCornersSBWithMeta_Async(image.ref, patternSize.cvd.ref, flags, callback),
      (c, p, p1, p2) {
        final rval = p.cast<ffi.Bool>().value;
        calloc.free(p);
        final corners = Mat.fromPointer(p1.cast());
        final meta = Mat.fromPointer(p2.cast());
        return c.complete((rval, corners, meta));
      },
    );