composePanoramaAsync method
Implementation
Future<(StitcherStatus, Mat)> composePanoramaAsync({VecMat? images}) async {
return cvRunAsync2(
(callback) => images == null
? cffi.Stitcher_ComposePanorama_Async(
ref,
callback,
)
: cffi.Stitcher_ComposePanorama_1_Async(
ref,
images.ref,
callback,
), (c, status, pano) {
final value = status.cast<ffi.Int>().value;
calloc.free(status);
return c.complete(
(StitcherStatus.fromInt(value), Mat.fromPointer(pano.cast<cvg.Mat>())),
);
});
}