HOG使用OpenCV,C ++中的HOGDescriptor进行可视化 [英] HOG features visualisation with OpenCV, HOGDescriptor in C++

查看:228
本文介绍了HOG使用OpenCV,C ++中的HOGDescriptor进行可视化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用OpenCV C ++ Lib的HOGDescriptor计算图像的特征向量.我想可视化源图像中的功能.谁能帮我?

I use the HOGDescriptor of the OpenCV C++ Lib to compute the feature vectors of an images. I would like to visualize the features in the source image. Can anyone help me?

推荐答案

我今天遇到了完全相同的问题.使用OpenCV的HOGDescriptor::compute()函数为64x128图像计算HOGDescriptor向量很容易,但是没有内置功能可以可视化它.

I had exactly the same problem today. Computing a HOGDescriptor vector for a 64x128 image using OpenCV's HOGDescriptor::compute() function is easy, but there is no built-in functionality to visualize it.

最后,我设法了解了如何将梯度方向幅度存储在3870个长HOG描述符向量中.

Finally I managed to understand how the gradient orientation magnitudes are stored in the 3870 long HOG descriptor vector.

您可以在此处找到用于可视化HOGDescriptor的C ++代码:

You can find my C++ code for visualizing the HOGDescriptor here:

http://www.juergenbrauer.org/old_wiki/doku .php?id = public:hog_descriptor_computation_and_visualization

希望有帮助!

于尔根

这篇关于HOG使用OpenCV,C ++中的HOGDescriptor进行可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆