I try to create panorama with 3 images in this way
Stitcher stitcher = Stitcher::createDefault(true);
stitcher.setBundleAdjuster(cv::makePtr<NoBundleAdjuster>());
stitcher.setRegistrationResol(1);
Stitcher::Status statusTransform = stitcher.estimateTransform(images);
if (statusTransform != Stitcher::OK) {
if (statusTransform == Stitcher::ERR_NEED_MORE_IMGS) {
string strMytestString1("Transform need more images");
cout << strMytestString1;
}
}
Stitcher::Status status = stitcher.composePanorama(images, result);
and receive such error. Please can anybody help me?
OpenCV Error: Assertion failed (imgs.size() == imgs_.size()) in composePanorama, file /Users/kyle/code/opensource/opencv/modules/stitching/src/stitcher.cpp, line 132 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: