简体   繁体   English

OpenCV SURF关键点比较

[英]OpenCV SURF keypoints Comparison

我在相机中有2个图像,方向稍微偏左,我想从opencv中找到方向,我从2个图像中获得了冲浪关键点,我的问题是如何比较这2个关键点来找到方向。

You need to apply a matcher (cv FlannMatcher for example) to detect which keypoints in both images correspond to the same point. 您需要应用匹配器 (例如cv FlannMatcher)来检测两个图像中的哪个关键点对应于同一点。

Then, with the paired matches you have to apply cv::findHomography() . 然后,使用配对的匹配项,您必须应用cv :: findHomography() This algorithm will use 4 matched pairs to extract the homography matrix. 该算法将使用4个匹配对来提取单应矩阵。

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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM