HOG特征检测可以用于关键点匹配吗?
我看到HOG经常与SVM一起用于目标检测,它可以用于匹配两个图像中的关键点吗?
顺便说一句,我在哪里可以找到使用 HOGDescriptor 的 OpenCV 示例?
I see HOG is often used with SVM for target detection, can it be used in matching keypoints in two images?
and btw, where could I find OpenCV sample of using HOGDescriptor?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HOG可以在没有SVM的情况下用于特征匹配。
只需选择一些点(例如边缘)并以这些点为中心计算 ROI 内的 HOG 特征。
HOGDescriptor
似乎仅适用于 GPU 编程。我在 openCV 中为 HOG 创建了 Descriptor 作为
Mat
,它也适用于 OpenCV 匹配函数。HOG can be used without SVM for feature matching.
just choose some points ( edge, for example ) and calculate the feature of HOG inside ROI with those points centered.
HOGDescriptor
seems only for GPU programming.I created Descriptor for HOG as a
Mat
in openCV and it also works for OpenCV matching functions.如果您正在处理图像,则可以将 SIFT/SURF 与 SVM 结合使用。没有什么可以阻止您使用 HOG 进行关键点匹配,但请记住,有效性取决于描述符的辨别能力和鲁棒性。
编辑:当我最初提到 HOG 仅用于视频时,我的理解不好。不知何故,我正在考虑光流向量的直方图,这对于视频活动描述非常有效。
编辑 2 [12 年 10 月]:我现在建议人们尝试 ORB 或 BRISK,以寻找那些对于关键点匹配快速且非常有效的许可证友好描述符。
If you are working with images you can use SIFT/SURF with SVM. There is nothing that stops you from using HOG for keypoint matching, but bear in mind that the effectiveness depends on discrimination power and robustness of the descriptor.
Edit: My bad in understanding when I originally mentioned HOG being for video only. Somehow I was thinking about histogram of optical flow vectors which is very effective for video activity description.
Edit 2 [Oct '12]: I now suggest people to try ORB or BRISK for those looking for license friendly descriptors that are fast and quite effective for keypoint matching.