What is the Histogram of Oriented Gradients (HOG) and how is it used?

Technical