Stitching Images: Homography estimation error

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

alittlebirdy gravatar image

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?

edit retag flag offensive close merge delete

Comments

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) )

LBerger gravatar imageLBerger ( 2020-03-12 03:11:11 -0500 )edit
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.

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