【发布时间】:2014-05-04 12:12:23
【问题描述】:
我在匹配我使用 harris 检测器找到的兴趣点时遇到问题。
我没有在opencv中使用harrisDetector的内置功能。相反,我编写了算法。
所以,我最终得到了兴趣点,但我不知道如何用 opencv 内置描述符来描述这些 x,y 坐标集。
有谁知道如何描述图像给定坐标集的这些兴趣点?
这是我尝试过的:
-
我将兴趣点转换为关键点
keyPoints.push_back(KeyPoint(InterestPoints[i].x, InterestPoints[i].y, 0.0)); -
使用冲浪描述符
SurfDescriptorExtractor extractor; Mat descriptors_1; extractor.compute(src_orig, keyPoints, descriptors_1);
但这对我帮助不大。每次我运行代码时,它都会重置我的变量 keyPoints 并且什么也没给我。
感谢任何cmets。
【问题讨论】:
-
来自 opencv doc:“删除了无法计算描述符的关键点。” docs.opencv.org/modules/features2d/doc/…
-
好的,但是 Mat descriptors_1 是空的。我认为它应该充满……。
标签: c++ opencv feature-detection