Mahyar
Mahyar

Reputation: 796

OpenCV SURF keypoints Comparison

I have 2 image with a little bit orientation to left in camera, i want to find the orientation from opencv, i get surf keypoints from 2 image and my problem is how to compare this 2 keypoints to find orientation.

Upvotes: 4

Views: 1980

Answers (1)

Jav_Rock
Jav_Rock

Reputation: 22245

You need to apply a matcher (cv FlannMatcher for example) to detect which keypoints in both images correspond to the same point.

Then, with the paired matches you have to apply cv::findHomography(). This algorithm will use 4 matched pairs to extract the homography matrix.

The last step (some code here) is to convert from homography matrix to pose matrix (extrinsic parameters matrix). The pose matrix is composed by rotation and translation.

Upvotes: 6

Related Questions