Comparison of key points OpenCV SURF

I have 2 images with a slight left orientation in the camera, I want to find the orientation from opencv, I get the key search points from 2 images, and my problem is how to compare these 2 key points to find the orientation.

+4
source share
1 answer

You need to apply matcher (e.g. cv FlannMatcher) to determine which key points in both images correspond to the same point.

Then with pair matches, you should apply cv :: findHomography () . This algorithm will use 4 pairs of pairs to extract the homography matrix.

The last step ( some code here ) is to convert from a homography matrix to a matrix pose (external parameter matrix). The pose matrix consists of rotation and translation.

+6
source

All Articles