基于C++的opencv中的DMatch类和keypoint类

KeyPoint

CV_WRAP KeyPoint():pt(0,0),size(0),angle(-1),response(0),class_id(-1){}
pt(x,y):关键点的坐标;
size():关键点邻域直径大小;
angle:角度,表示关键点的方向,值为[0,360],负值表示不使用。
response:关键点的响应程度,response代表着该关键点how good,响应越强,关键点越好。
octave:代表是从金字塔哪一层提取的得到的数据。
class_id:当要对图片进行分类时,我们可以用class_id对每个特征点进行区分,未设定时为-1,需要靠自己设定。

DMatch

使用sift/surf/orb提取特征值返回的数据结构,为DMatch。

queryldx:查询点的索引
trainldx:被查询到点的索引
imgldx:(常为0),表示第0张图
distance:距离误差

猜你喜欢

转载自blog.csdn.net/qq_42138927/article/details/107064857
今日推荐