我一直在使用Orb探测器和描述符以及BF_hamming匹配器。但问题是当我尝试使用这段代码过滤matche时:
matcher.match(descriptors1, descriptors2, matches);
svimatches = matches.toList();
for (int j = 0; j < descriptors1.rows(); j++) {
distance = svimatches.get(j).distance;
if (distance < min_distance) {
min_distance = distance;
}
for (int z = 0; z < descriptors1.rows(); z++) {
if (svimatches.get(z).distance <= 2*min_distance) {
goodmatcheslist.add(svimatches.get(z));
}
}
我得到太多的比赛,但是当我使用0.25 * min_distance时,它过滤得恰到好处。 这是什么原因?任何人都可以为ORB推荐任何其他类型的匹配过滤方法吗?
先谢谢, K.Š。
答案 0 :(得分:0)
也许您想通过增加检测器的阈值来减少检测到的特征的数量?这是减少比赛次数的另一种方式。