OpenCV特征匹配相关结构(KeyPoint&DMatch类型简介)
来源:互联网 发布:运营商网络制式 编辑:程序博客网 时间:2024/05/17 01:31
本文转自:http://blog.csdn.net/u011867581/article/details/21871685
1. 特征点类:
- class KeyPoint
- { Point2f pt; //坐标
- float size; //特征点邻域直径
- float angle; //特征点的方向,值为[零,三百六十),负值表示不使用
- float response;
- int octave; //特征点所在的图像金字塔的组
- int class_id; //用于聚类的id
- }
- struct DMatch
- { //三个构造函数
- DMatch():
- queryIdx(-1),trainIdx(-1),imgIdx(-1),distance(std::numeric_limits<float>::max()) {}
- DMatch(int _queryIdx, int _trainIdx, float _distance ) :
- queryIdx( _queryIdx),trainIdx( _trainIdx), imgIdx(-1),distance( _distance) {}
- DMatch(int _queryIdx, int _trainIdx, int _imgIdx, float _distance ) : queryIdx(_queryIdx), trainIdx( _trainIdx), imgIdx( _imgIdx),distance( _distance) {}
- int queryIdx; //此匹配对应的查询图像的特征描述子索引
- int trainIdx; //此匹配对应的训练(模板)图像的特征描述子索引
- int imgIdx; //训练图像的索引(若有多个)
- float distance; //两个特征向量之间的欧氏距离,越小表明匹配度越高。
- bool operator < (const DMatch &m) const;
- };
0ρ = √( (x1-x2)2+(y1-y2)2 ) |x| = √( x2 + y2 )
1 0
- OpenCV特征匹配相关结构(KeyPoint&DMatch类型简介)
- OpenCV特征匹配相关结构(KeyPoint&DMatch)
- KeyPoint&DMatch类型简介
- opencv中的KeyPoint和DMatch
- 【杂谈opencv】OpenCV中的KeyPoint与DMatch
- opencv 的 DMatch, keypoint等资料,供项目查阅
- opencv DMatch
- opencv Keypoint
- 特征提取keypoint结构以及xxDescriptorExtractor提取结果
- Opencv中的DMatch
- 特征点匹配 opencv系列函数解析 追踪相关(一)
- Python+OpenCV学习(12)---特征匹配
- opencv 特征点提取、匹配(一)
- opencv 特征点提取、匹配(二)
- OpenCV Surf特征匹配
- 初学opencv/特征匹配
- OpenCV特征提取相关
- opencv的KeyPoint
- LeetCode的easy题集合(C++实现)四
- ☆☆☆https://leetcode.com/problems/3sum/
- struts2中配置servlet
- Rails中文Podcasts【三】
- 数组中的逆序对
- OpenCV特征匹配相关结构(KeyPoint&DMatch类型简介)
- java开发基本语法——总结
- 这个时代
- NUBT1475 数位dp(记忆化搜索)
- 【剑指Offer学习】【面试题7:用两个栈实现队列】
- 二叉树的各种遍历
- 浙江大学PAT_乙级_1004. 成绩排名 (20)
- Android 自定义View的使用
- cubie A20 android源码编译 小记