estimateTransformAsync method

Future<StitcherStatus> estimateTransformAsync(
  1. VecMat images, {
  2. VecMat? masks,
})

Implementation

Future<StitcherStatus> estimateTransformAsync(VecMat images, {VecMat? masks}) async {
  final rptr = calloc<ffi.Int>();
  masks ??= VecMat.fromList([]);
  return cvRunAsync0(
    (callback) => cstitching.cv_Stitcher_estimateTransform(ref, images.ref, masks!.ref, rptr, callback),
    (c) {
      final rval = StitcherStatus.fromInt(rptr.value);
      calloc.free(rptr);
      return c.complete(rval);
    },
  );
}