stitchAsync method
Implementation
Future<(StitcherStatus, Mat)> stitchAsync(VecMat images, {VecMat? masks}) async {
final rptr = calloc<ffi.Int>();
final rpano = Mat.empty();
void completeFunc(Completer c) {
final rval = (StitcherStatus.fromInt(rptr.value), rpano);
calloc.free(rptr);
return c.complete(rval);
}
if (masks == null) {
return cvRunAsync0(
(callback) => cstitching.cv_Stitcher_stitch(ref, images.ref, rpano.ref, rptr, callback),
completeFunc,
);
}
return cvRunAsync0(
(callback) => cstitching.cv_Stitcher_stitch_1(ref, images.ref, masks.ref, rpano.ref, rptr, callback),
completeFunc,
);
}