【杂谈opencv】OpenCV中的KeyPoint与DMatch
来源:互联网 发布:学士后java什么意思 编辑:程序博客网 时间:2024/06/05 07:49
1-特征点KeyPoint
class KeyPoint { Point2f pt; //坐标 float size; //特征点邻域直径 float angle; //特征点的方向,值为[零,三百六十),负值表示不使用 float response; int octave; //特征点所在的图像金字塔的组 int class_id; //用于聚类的id };
=====================分割线=======================
2-存放匹配结果的结构DMatch
/*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 descriptor index - 此匹配对应的查询图像的特征描述子索引 CV_PROP_RW int trainIdx; // train descriptor index - 此匹配对应的训练(模板)图像的特征描述子索引 CV_PROP_RW int imgIdx; // train image index - 训练图像索引(若有多个) //例如已知一幅图像的sift描述子,与其他十幅图像的描述子进行匹配,找最相似的图像,则imgIdx此时就有用了。 CV_PROP_RW float distance; // //两个特征向量之间的欧氏距离,越小表明匹配度越高。//DMatch比较运算符重载,比较的是DMatch中的distance,小于为true,否则为false // less is better bool operator<(const DMatch &m) const;};
阅读全文
0 0
- 【杂谈opencv】OpenCV中的KeyPoint与DMatch
- opencv中的KeyPoint和DMatch
- Opencv中的DMatch
- opencv 的 DMatch, keypoint等资料,供项目查阅
- OpenCV特征匹配相关结构(KeyPoint&DMatch)
- OpenCV特征匹配相关结构(KeyPoint&DMatch类型简介)
- opencv DMatch
- opencv Keypoint
- opencv的KeyPoint
- OpenCV中KeyPoint类
- KeyPoint&DMatch类型简介
- opencv中keypoint数据结构分析
- opencv中keypoint数据结构分析
- opencv中keypoint数据结构分析
- OPENCV杂谈
- openCV中的KeyPoints、DMatch、以及drawMatches函数(sift算法会用到的)
- opencv如何获得keypoint的坐标
- 【杂谈opencv】OpenCV中的cvRound()、cvFloor()、 cvCeil()函数讲解
- Listview 和RecycleView的异同
- springboot源码分析14-ApplicationContextInitializer原理Springboot中PropertySource注解多环境支持以及原理
- CSS3——过渡(transition)
- zookeeper目录结构
- 曾国藩六戒—送给自己的未来人生
- 【杂谈opencv】OpenCV中的KeyPoint与DMatch
- 软件测试基本概念(1)定义和分类
- 看懂Oracle License 许可机制【转】
- LINUX双网卡绑定设置。
- Golang从入门到精通(二十二):Golang错误处理之defer
- hadoop伪分布式搭建
- 利用JQUERY实现多个AJAX请求等待
- restful+ci框架 实践
- Java 8 Optional类深度解析