StrataQuest Home › StrataQuest Glossary › Foreground / Background
Image Data

Foreground / Background

The thing you care about, and everything else

Definition
Foreground and background are the two regions a binary maskLoading... partitions an image into. The foreground is the pixels you've decided count: cells, tissue, structures of interest. The background is the rest: glass, sample edges, debris, dim regions you've decided don't matter. The boundary, where a pixel just barely qualifies as foreground, is a thresholdLoading..., set by hand or by an algorithm like Otsu's methodLoading....
Detection - Automatic Background Threshold params
Video · Primary
Detection - Total Area
Video · Primary
Supporting
H&EDSPTCH
Video · Supporting
Measurements Mask - Cellular
Video · Supporting
The threshold is a choice
Every position selects a different boundary
The two sides aren't symmetric
White is foreground; flip it on purpose
"Background" doesn't mean "empty"
It means "not what we're counting now"

The threshold as a knob

Take a slider, with the grayscale imageLoading... above it and a black-and-white maskLoading... below. Slide right and the mask shrinks toward the brightest pixels. Slide left and it grows toward everything. The best position is the analyst's choice; the image does not fix it.

The threshold enginesLoading... let you set the slider numerically. Otsu's methodLoading... sets it for you by minimizing intra-class variance, which finds the value that best separates the histogram's two modes. The Classifier engineLoading... skips the slider entirely and learns the boundary from your annotations. Each of the three determines, pixel by pixel, where foreground stops and background starts.

Share This Term
Term Connections