1. 首页
  2. 数据库
  3. 其它
  4. 使用opencv中匹配点对的坐标提取方式

使用opencv中匹配点对的坐标提取方式

上传者: 2020-12-22 20:56:24上传 PDF文件 38.76KB 热度 8次
在opencv中,特征检测、描述、匹配都有集成的函数。vector bestMatches;用来存储得到的匹配点对。那么如何提取出其中的坐标呢? int index1, index2; for (int i = 0; i < bestMatches.size(); i++)//将匹配的特征点坐标赋给point { index1 = bestMatches.at(i).queryIdx; index2 = bestMatches.at(i).trainIdx; cout << keyImg1.at(index1).pt.x << " "
下载地址
用户评论