composePanoramaAsync method

Future<(StitcherStatus, Mat)> composePanoramaAsync({
  1. VecMat? images,
})

Implementation

Future<(StitcherStatus, Mat)> composePanoramaAsync({VecMat? images}) async {
  return cvRunAsync2(
      (callback) => images == null
          ? cstitching.Stitcher_ComposePanorama_Async(
              ref,
              callback,
            )
          : cstitching.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<cstitching.Mat>())),
    );
  });
}