composePanorama method
These functions try to compose the given images (or images stored internally from the other function calls) into the final pano under the assumption that the image transformations were estimated before. https://docs.opencv.org/4.x/d2/d8d/classcv_1_1Stitcher.html#acc8409a6b2e548de1653f0dc5c2ccb02
Implementation
(StitcherStatus, Mat pano) composePanorama({VecMat? images}) {
return using<(StitcherStatus, Mat)>((arena) {
final rptr = arena<ffi.Int>();
final rpano = Mat.empty();
images == null
? cvRun(() => cffi.Stitcher_ComposePanorama(ref, rpano.ref, rptr))
: cvRun(() => cffi.Stitcher_ComposePanorama_1(ref, images.ref, rpano.ref, rptr));
return (StitcherStatus.fromInt(rptr.value), rpano);
});
}