【问题标题】:Number of key points using SURF detector in matlabmatlab中使用SURF检测器的关键点数
【发布时间】:2015-09-27 09:28:47
【问题描述】:

我试图计算引用图像和查询图像之间匹配的关键点的数量我需要计算匹配的内点点的数量,任何人都可以告诉我任何函数都可以计算...

在这个例子中有一个函数可以显示匹配点:

figure;
showMatchedFeatures(boxImage, sceneImage, inlierBoxPoints, ...
    inlierScenePoints, 'montage');
title('Matched Points (Inliers Only)');

如何计算匹配的功能编号?像计数(匹配特征)=?

我的示例链接如下 http://www.mathworks.com/help/vision/examples/object-detection-in-a-cluttered-scene-using-point-feature-matching.html

【问题讨论】:

    标签: matlab computer-vision feature-detection matlab-cvst surf


    【解决方案1】:

    如果您按照该示例进行操作,则工作区中可能有一个名为 boxPairs 的变量,它来自 matchFeatures(boxFeatures, sceneFeatures);

    正如其本身所说,该函数正在匹配 2 个图像的点。 boxPairs 是一个 Npointsmatched x 2 索引矩阵。 size(boxPairs,1) 会给你匹配的点数。

    如果你想要几何变换后匹配点的数量,那就消除异常值

    (在[tform, inlierBoxPoints, inlierScenePoints] = ... estimateGeometricTransform(matchedBoxPoints, matchedScenePoints, 'affine');

    然后获取size(inlierBoxPoints,1)。此大小应小于或等于前一个大小。

    【讨论】:

      猜你喜欢
      • 2015-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-06
      相关资源
      最近更新 更多