Histogram of oriented gradients (HOG) Python implementation using NumPy from scratch.
HOG is an image feature descripts to describe the image based on the gradients directions and magnitudes. At the current time, this project supports calculating the following:
- Horizontal and vertical gradients.
- Gradient magnituge.
- Gradient direction.
- Histogram for a given cell.
In the future, the project will support the following:
- Extracting histogram from all cells within the entire image patch.
- Concatenating the histogrms of all cells within the same block.
- Normalize the feature vector of each block.
- Concatenating all feature vectors from all blocks.
For contacting me:
LinkedIn: https://www.linkedin.com/in/ahmedfgad
Facebook: https://www.facebook.com/ahmed.f.gadd
Twitter: https://twitter.com/ahmedfgad
KDnuggets: https://www.kdnuggets.com/author/ahmed-gad
TowardsDataScience: https://towardsdatascience.com/@ahmedfgad