AI engineering glossary · Computer vision

What is binary mask?

Binary mask (also called Segmentation mask): An image-sized grid of ones and zeros marking which pixels belong to a region, with 1 for inside and 0 for outside. Segmentation models output masks, and masks can be used to cut out objects.

Level: beginnerTopic: Computer vision

Binary mask: an example

A mask of a tumour is 1 on the tumour's pixels and 0 elsewhere, letting software measure its area by counting the ones.

Related terms

More Computer vision terms

Where you learn it

Binary mask 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.