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}) {
  return using<(StitcherStatus, Mat)>((arena) {
    final rptr = arena<ffi.Int>();
    final rpano = Mat.empty();
    masks == null
        ? cvRun(() => cstitching.Stitcher_Stitch(ref, images.ref, rpano.ref, rptr))
        : cvRun(() => cstitching.Stitcher_Stitch_1(ref, images.ref, masks.ref, rpano.ref, rptr));
    return (StitcherStatus.fromInt(rptr.value), rpano);
  });
}