Histogram of Oriented Gradients (HOG) code using Matlab

Matlab code computes the HOG feature vector for any given image.

You are now following this Submission

Histogram of Oriented Gradients can be used for object detection in an image. Particularly, they were used for pedestrian detection as explained in the paper "Pedestrian Detection using Histogram of Oriented Gradients" By Dalal and Triggs. The Matlab code computes HOG in the detailed manner as explained in the paper. The descriptor can then be used for training a classifier and for detecting object/non-object regions.
For more visit my blog: sanyamgarg.blogspot.com

Cite As

Sanyam Garg (2026). Histogram of Oriented Gradients (HOG) code using Matlab (https://www.mathworks.com/matlabcentral/fileexchange/46408-histogram-of-oriented-gradients-hog-code-using-matlab), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Updates file copyright settings

1.1.0.0

Improved comments and better readability of the code

1.0.0.0