Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, I have the error while try to create panorama.

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: