opencv的DMatch

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;
};
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值