1、DMatch是描述图像匹配信息的类

/** @brief Class for matching keypoint descriptors
query descriptor index, train descriptor index, train image index, and distance between
descriptors.
*/
class CV_EXPORTS_W_SIMPLE DMatch
{
public:
    CV_WRAP DMatch();//默认构造函数
    CV_WRAP DMatch(int _queryIdx, int _trainIdx, float _distance);//构造函数
    CV_WRAP DMatch(int _queryIdx, int _trainIdx, int _imgIdx, float _distance);
 
    CV_PROP_RW int queryIdx; //query描述子下标,即match函数中位于前面的描述子
    CV_PROP_RW int trainIdx; // train描述子下标,match函数中位于后面的描述子
 
   // 匹配图像下标,对于一副图像img1的描述子,在其他图像中找到与其最相似的,imgIdx就是找到的图像下标
    CV_PROP_RW int imgIdx;  
 
    //两个描述子的距离,一般是欧式距离
    CV_PROP_RW float distance;
    // less is better
    bool operator<(const DMatch &m) const;
};

最新文章

  1. 字体大小和背景颜色修改--Android Studio
  2. Compensating Transaction Pattern(事务修正模式)
  3. 使用 python 获取 Linux 系统信息(通过dmidecode命令)
  4. 数据结构(Java描述)之线性表
  5. java 14-3 正则表达式的分割
  6. KMP算法模板
  7. 利用WiFi钓鱼法追邻居漂亮妹纸
  8. Rake::TestTask 介绍
  9. firefly 问题
  10. Java异常处理的误区和经验总结
  11. 尝试设计LFSR加密器,并用CAP4验证随机性
  12. 在node.js中使用ejs的demo 第五篇
  13. Tcl与Design Compiler (十)——其他的时序约束选项(一)
  14. 【转】Eclipse 如何添加Android SDK
  15. Charles Proxy代理使用简要说明
  16. 如何用Python爬虫实现百度图片自动下载?
  17. 15 个 Eclipse 常用开发快捷键使用技巧
  18. MySQL学习笔记(六)MySQL8.0 配置笔记
  19. 更换jupyter notebook风格主题、修改默认工作路径(Ubuntu系统和Win系统)
  20. PAT Basic 1004

热门文章

  1. Qt动态布局
  2. 学习笔记-AngularJs(二)
  3. day04_python_1124
  4. log4j不输出日志的解决方案
  5. dell win10 productkey
  6. 图解中序遍历线索化二叉树,中序线索二叉树遍历,C\C++描述
  7. C++类型转换的注意事项
  8. 十九. Python基础(19)--异常
  9. 单元测试UI
  10. format格式