estimateTransformAsync method

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

Implementation

Future<StitcherStatus> estimateTransformAsync(
  VecMat images, {
  VecMat? masks,
}) async {
  masks ??= VecMat.fromList([]);
  return cvRunAsync(
      (callback) => cffi.Stitcher_EstimateTransform_Async(
            ref,
            images.ref,
            masks!.ref,
            callback,
          ), (c, p) {
    final value = p.cast<ffi.Int>().value;
    calloc.free(p);
    return c.complete(StitcherStatus.fromInt(value));
  });
}