stitch method

(StitcherStatus, Mat) stitch(
  1. VecMat images, {
  2. VecMat? masks,
})

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. https://docs.opencv.org/4.x/d2/d8d/classcv_1_1Stitcher.html#a37ee5bacf229e9d0fb9f97c8f5ed1acd

Implementation

(StitcherStatus, Mat pano) stitch(VecMat images, {VecMat? masks}) {
  final rptr = calloc<ffi.Int>();
  final rpano = Mat.empty();
  masks == null
      ? cvRun(() => cstitching.cv_Stitcher_stitch(ref, images.ref, rpano.ref, rptr, ffi.nullptr))
      : cvRun(
          () => cstitching.cv_Stitcher_stitch_1(ref, images.ref, masks.ref, rpano.ref, rptr, ffi.nullptr),
        );
  final rval = (StitcherStatus.fromInt(rptr.value), rpano);
  calloc.free(rptr);
  return rval;
}