How are HoG features represented graphically?

前端 未结 5 1459
小蘑菇
小蘑菇 2020-12-24 03:04

I\'m implementing the Histogram of Oriented Gradient features from \"Histograms of oriented gradients for human detection\" and I\'d like to visualise the result. All papers

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 03:32

    A blog called Jurgenwiki has some sample code (called get_hogdescriptor_visu()) for visualizing HOG Descriptors in OpenCV. In the past, I copy/pasted the Jurgenwiki code into a C++ file, passed my HOG features into get_hogdescriptor_visu(), and the visualization looked pretty good. Here's an example:

    enter image description here

    One caveat of the Jurgenwiki code is that it expects you to use the default HOGDescriptor() parameters (e.g. 16x16 blocks, 8x8 cells, 9 orientation bins). However, if you're using custom parameters in your HOGDescriptor, you can tweak the Jurgenwiki code to match your HOG parameters.

    This StackOverflow post is pretty useful too.

提交回复
热议问题