小编ami*_*unt的帖子

为什么SURF特征点有浮点坐标?

我刚刚编写了 C++ OpenCV 2.4.7 代码来使用 SurfFeatureDetector 提取立体图像中的特征点。它工作得很好,但是当我意识到点坐标是浮点时我感到困惑,例如它发现坐标 [283.23 123.424] 作为左图像中的特征之一。

这是代码的一部分(简单地提取特征):

int minHessian = 400;

SurfFeatureDetector detector(minHessian);
vector<KeyPoint> featuresLeft, featuresRight;

detector.detect(leftImg, featuresLeft);
detector.detect(rightImg, featuresRight);
Run Code Online (Sandbox Code Playgroud)

谁能告诉我这是怎么发生的?内置函数是否涉及任何插值?

opencv image-processing feature-extraction feature-detection

5
推荐指数
0
解决办法
668
查看次数