문제

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