Ask Your Question

Revision history [back]

Stitching Images: Homography estimation error

Hi all. I am trying to stitch images together and based my code on this sample: https://github.com/opencv/opencv/blob/master/samples/cpp/stitching_detailed.cpp (using OpenCV 4.2.0). The code crashes on this bit here:

 if (!(*estimator)(features_, pairwise_matches_, cameras))
{
    std::cout<< "Homography estimation failed" <<std::endl;
    return;
}

I've already dug into features and it has 1000+ keypoints for each image. Any suggestions on how to debug this?