Extract HOG (Histogram of Oriented Gradient) feature.
Extract HOG (Histogram of Oriented Gradient) features.
Dalal, N and Triggs, B, Histograms of Oriented Gradients for Human Detection, IEEE Computer Society Conference on Computer Vision and Pattern Recognition 2005 San Diego, CA, USA
...
...
@@ -16,6 +16,7 @@ from util.utils import ImageUtils
fromextractorimportExtractor
classHOG(Extractor):
"""Implements HOG (Histogram of Oriented Gradient) feature extraction."""
def__init__(self):
...
...
@@ -23,7 +24,18 @@ class HOG(Extractor):
defrun(self,image):
"""Extract HOG (Histogram of Oriented Gradient) features.
Parameters
----------
image : opencv image
Image to be analyzed.
Returns
-------
features : tuple
Returns a tuple containing a list of labels, type and values for each feature extracted.
Multiresolution Gray-Scale and Rotation Invariant Texture Classification with Local Binary Patterns. Timo Ojala, Matti Pietikainen, Topi Maenpaa. 2002.
...
...
@@ -17,15 +17,35 @@ from util.utils import ImageUtils