首页 文章

matlab中SURF检测器的度量

提问于
浏览
1

我按照我的示例链接找到原始图像和查询图像之间的匹配点,以检测查询图像是否在原始图像中

当使用模板(查询图像)在原始图像中工作正常时,在原始图像中找不到使用查询图像时出现此问题

那个问题是当有:

MATCHED_POINTS1 ( original image ) and MATCHED_POINTS2 ( query image )
do not contain enough points

Error using affine2d/set.T 
The final column of an affine transformation matrix must consist of zeroes,
except for a one in the last row.

问:我需要找到一个计算匹配点百分比的指标,因为当应用几何变换返回错误时,由于没有足够的匹配点...?

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

1 回答

  • 0

    您收到的第一个错误是由 estimateGeometricTransform 引发的 . 您需要至少3对匹配的点来估计仿射变换 . 如果 matchedBoxPointsmatchedScenePoints 包含少于3个点,则会出现此错误 . 你可以简单地检查 size(boxPairs, 1) 是什么 . 如果小于3,则可以断定该对象不在场景中 .

相关问题