stitch method
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(() => cffi.Stitcher_Stitch(ref, images.ref, rpano.ref, rptr))
: cvRun(() => cffi.Stitcher_Stitch_1(ref, images.ref, masks.ref, rpano.ref, rptr));
return (StitcherStatus.fromInt(rptr.value), rpano);
});
}