Histogram of Oriented Gradients

An object's outline can remain recognisable when the lighting changes. Histograms of oriented gradients describe local edge directions, giving a detector information about shape without relying on exact pixel values.

14 sections · 15 questions · 4 coding challenges

1 / 14

Could the Arrangement of Edges Help Us Recognise a Person?

BOTIE

People in photographs wear different clothes and appear under different lighting. Their raw pixels vary greatly, but their outlines and local edge arrangements can still share useful structure. We need a representation that retains those arrangements without requiring exact pixel agreement.

Dalal and Triggs' 2005 work investigated histograms of oriented gradients for detecting humans. Their experiments examined how local gradient directions and overlapping contrast normalisation could supply useful evidence to a classifier.

Within small cells, we count the strength of brightness changes pointing in different directions. Neighbouring cells preserve a rough spatial layout, and normalising groups of cells reduces sensitivity to some contrast changes. The resulting vector describes a pattern of local edges. It is a feature representation, so a separate trained classifier is still needed to decide which patterns indicate a person.

Sources for this history