AI engineering glossary · Computer vision

What is thresholding?

Thresholding: Converting a grayscale image to a black-and-white one by setting pixels above a cutoff to white and the rest to black. It is a simple way to separate foreground from background, as in document scanning.

Level: beginnerTopic: Computer vision

Thresholding: an example

With threshold 128, a pixel of 200 becomes 255 and a pixel of 90 becomes 0.

Related terms

More Computer vision terms

Where you learn it

Thresholding 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.