b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

cmt算法_cmt sctp_opentld算法(2)

电脑杂谈  发布时间:2017-06-17 08:04:12  来源:网络整理

cmt sctp_opentld算法_cmt算法

匹配到了背景关键点;

最佳匹配的匹配距离大于阈0.25;

最佳匹配与次佳匹配的匹配距离之比大于阈0.8(比率越小,最佳匹配越优于次佳匹配)

matcher.matchLocal(keypoints, descriptors, center, scale, rotation,points_matched_local,
    classes_matched_local);
  • 1
  • 2
  • 1
  • 2

比较当前帧中检测得到的每一个关键点与第一帧中经过旋转和尺度变换之后的所有前景关键点之间的欧氏距离,小于阈20则该前景关键点是有可能匹配上的,将这些可能的前景关键点构造成一个特征描述库database_potential;

将当前帧中检测得到的每一个关键点的特征描述与database_potential进行knnMatch匹配,每个特征描述子在database_potential寻找最佳的2个匹配结果,排除不稳定的关键点的策略与matchGlobal类。

consensus.initialize(points_normalized);
  • 1
  • 1

计算并保存第一帧中所有归一化前景关键点points_normalized与x轴的夹角(反正切)angles_pairwise以及关键点两两之间的距离distances_pairwise。

consensus.estimateScaleRotation(points_fused, classes_fused, scale, rotation);
  • 1
  • 1

计算matchGlobal匹配后融合得到的关键点的夹角以及关键点两两之间的距离,并与对应的points_normalized关键点的夹角求差、距离求商,再分别取平均,评估出当前帧中目标的尺度因子scale和旋转角度rotation。

consensus.findConsensus(points_fused, classes_fused, scale, rotation, center,
    points_inlier, classes_inlier);
  • 1
  • 2
  • 1
  • 2

计算matchGlobal匹配后融合得到的关键点的投票,即每一个关键点与对应的经过尺度和旋转变换后的points_normalized关键点之间构成的向量;

计算两两投票(1中的向量)之间的距离,按距离的大小进行升序排列;

cmt sctp_cmt算法_opentld算法

聚类并得到结果中最大的类;(当两个类之间的距离小于阈,合并这两个类)

将此类中的所有关键点作为points_inlier;

将所有points_inlier关键点的坐标均作为目标中心点center。cmt算法

fusion.preferFirst(points_tracked, classes_tracked, points_matched_global, classes_matched_global,
    points_fused, classes_fused);
  • 1
  • 2
  • 1
  • 2

将光流跟踪到的关键点与matchGlobal匹配到的关键点融合,得到的关键点用于评估目标的旋转角度和尺度,以及投票寻找目标中心位置。

fusion.preferFirst(points_matched_local, classes_matched_local, points_inlier, classes_inlier,
    points_active, classes_active);
  • 1
  • 2
  • 1
  • 2

将matchLocal匹配到的关键点与inliers关键点融合,得到最终有效的目标关键点points_active,这些关键点用于下一帧的跟踪。

下面两个基本是一样的,下载以后可以在linux下,cmake编译成功,codeblocks能成功运行,效果不理想,一动就丢失目标。

trax.cpp是不需要的,

https://github.com/gnebehay/CppMT

https://github.com/ArminPCM/OpenCMToolTracking

ios版:

https://github.com/songrotek/Tracking-on-iOS

android版:

https://github.com/cbui005/AndroidCMT_Tracking


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-53278-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 韩新洁
      韩新洁

      如果是包装漏气了

      • 朱洛基尔尔
        朱洛基尔尔

        我相信我们的政府一定能有不战而屈人之兵的智慧

    • 元明宗和世瓎
      元明宗和世瓎

    • 成宇珊
      成宇珊

      不申请通过就构成入侵中国领海

    热点图片
    拼命载入中...