问题描述
我使用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:
希望有帮助!
于尔根
这篇关于HOG使用OpenCV,C ++中的HOGDescriptor进行可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!