findChessboardCornersAsync function
Future<(bool, VecPoint2f)>
findChessboardCornersAsync(
- InputArray image,
- (int, int) patternSize, {
- VecPoint2f? corners,
- int flags = CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE,
Implementation
Future<(bool success, VecPoint2f corners)> findChessboardCornersAsync(
InputArray image,
(int, int) patternSize, {
VecPoint2f? corners,
int flags = CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE,
}) async {
corners ??= VecPoint2f();
final r = calloc<ffi.Bool>();
return cvRunAsync0(
(callback) => ccalib3d.cv_findChessboardCorners(
image.ref,
patternSize.cvd.ref,
corners!.ptr,
flags,
r,
callback,
), (c) {
final rval = r.value;
calloc.free(r);
return c.complete((rval, corners!));
});
}