HOG captures local edge/gradient structure by computing gradient orientations in small cells,
accumulating them into histograms, and normalizing over blocks. This creates a descriptor robust to
small deformations and illumination changes — ideal for pedestrian detection.