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... (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?
What does it mean code crashed?
Can you use image file given in tutorial https://docs.opencv.org/master/d8/d19... (Stitching detailed (python opencv >4.0.1) )
I used the code in opencv github: https://github.com/opencv/opencv/blob.... It just never moves beyond that point in the code. I don't know why--maybe pairwise_matches_ isn't good for some reason? Not sure how to debug this.