Methods working with gradient effectively solve lots of tasks in image processing. Building the histograms of it enhance usability and with combination of machine learning solve non trivial problems.