Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did not find in Mathematica a function for Histogram of Oriented Gradients (HOG) descriptors.

Is there any similar function? Do you have an implementation you are willing to share?

share|improve this question
How far have you got with your implementation, ImageConvolve might be a good place to start? – image_doctor Dec 6 '12 at 1:27
up vote 5 down vote accepted

From the Mathematica 9 help for GradientOrientationFilter:

Compute the histogram of oriented gradient (HOG) for an image, where each pixel casts a vote weighted by its gradient magnitude in the bin corresponding to its local orientation:

share|improve this answer
Yes, this implementation is a bit crude but conveys the idea. – Matthias Odisio Dec 13 '12 at 16:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.