Stitching Images: Homography estimation error

asked 2020-03-11 18:08:01 -0600

alittlebirdy gravatar image

Hi all. I am trying to stitch images together and based my code on this sample: (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;

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

edit retag flag offensive close merge delete


What does it mean code crashed?

Can you use image file given in tutorial (Stitching detailed (python opencv >4.0.1) )

LBerger gravatar imageLBerger ( 2020-03-12 03:11:11 -0600 )edit

I used the code in opencv github: 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.

alittlebirdy gravatar imagealittlebirdy ( 2020-03-12 15:39:11 -0600 )edit