Sift描述符提取器
我有两个关于 opencv SiftDescriptorExtractor 的问题:
- 如何将描述符从
cv::Mat
转换为vector
(i-th row = i-th描述符) - 如何定义 SIFT 描述符的大小(= 维数)?
是的,我知道 OpenCV 参考,但是,我无法让它工作。有人可以在这里放一个最小的工作示例吗?
I've got 2 questions about opencv SiftDescriptorExtractor:
- How can I convert descriptors from
cv::Mat
tovector<float* >
(i-th row = i-th descriptor) - How can I define size (= dimensionality) of SIFT descriptor?
Yeah, I know about OpenCV reference, however, I'm not able to get it working. Could someone put here minimum working example pls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
1-转换:
2-SIFT 大小:
你不能,因为 SIFT 算法定义了块、箱等的大小。你能做什么?您可以编写自己的筛选代码。这是一个很难的办法,但我鼓励你尝试一下。
1-The conversion:
2-Size of SIFT:
You can't as SIFT algorithm defines the size of the blocks, bins, etc. What can you do? You can code your own sift. This is a hard tack, but I encourage you to try it.
但是 OpenCV 的 SIFT 实现取自 http://blogs.oregonstate.edu/hess/code/sift /
因此您可以修改原始代码来更改描述符大小。通过修改 SIFT 描述符 bin 大小常量,可以更改描述符大小。如果您想要更多,您应该阅读代码。代码得到了很好的评论,并且基于 Lowe 的 2004 年论文《尺度不变关键点的独特图像特征》。
But SIFT Implementation of OpenCV taken from http://blogs.oregonstate.edu/hess/code/sift/
So you can modify original code to change descriptor size. By modifying constants of SIFT descriptor bin size, you can change descriptor size. If you want more than that, you should read the code. Code is well commented and based on Lowe's paper 2004 Distinctive Image Feature From Scale-Invariant Keypoints.