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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top