AI engineering glossary · Computer vision

What is image gradient?

Image gradient: The rate and direction of brightness change at each pixel, computed from differences between neighbouring pixels. Its magnitude highlights edges and its direction says which way they run; it is the base of edge detectors and descriptors like HOG.

Level: intermediateTopic: Computer vision

Image gradient: an example

If the pixel to the right is 200 and the one to the left is 100, the horizontal gradient there is about (200 - 100) / 2 = 50.

Related terms

More Computer vision terms

Where you learn it

Image gradient is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.