Stitcher::Status Stitcher::estimateTransform(InputArray images, const vector<vector<Rect> > &rois) { images.getMatVector(imgs_); rois_ = rois; Status status; if ((status = matchImages()) != OK) return status; estimateCameraParams(); return OK; }
Stitcher::Status Stitcher::estimateTransform(InputArrayOfArrays images, InputArrayOfArrays masks) { CV_INSTRUMENT_REGION(); images.getUMatVector(imgs_); masks.getUMatVector(masks_); Status status; if ((status = matchImages()) != OK) return status; if ((status = estimateCameraParams()) != OK) return status; return OK; }