composePanoramaAsync method
Implementation
Future<(StitcherStatus, Mat)> composePanoramaAsync({VecMat? images}) 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 (images == null) {
return cvRunAsync0(
(callback) => cstitching.cv_Stitcher_composePanorama(ref, rpano.ref, rptr, callback),
completeFunc,
);
}
return cvRunAsync0(
(callback) => cstitching.cv_Stitcher_composePanorama_1(ref, images.ref, rpano.ref, rptr, callback),
completeFunc,
);
}