StrataQuest Home StrataQuest Glossary Thresholding & Comparison
Image Processing & Correction

Thresholding & Comparison

Twelve engines, one operation — apply a per-pixel test, get a mask

Definition
Thresholding and comparison engines convert intensity-bearing input into a binary maskLoading... by applying a per-pixel test. The test can be: is this pixel brighter than X (ThresholdLoading...), is it inside the interval [X, Y] (Threshold LT/GT), is it brighter than the corresponding pixel in another image (Compare), is it inside or outside an interval defined per channel (Compare inside/outside interval), or is it above the threshold this algorithm just chose for me (OtsuLoading...). Every engine in this family produces the same output shape: a mask where each pixel is foreground if the test passed, background if not.
Detection - Total Area
Video · Primary
Detection - Automatic Background Threshold params
Video · Primary
Supporting
Dynamic range - 16bit to 8bit normalization
Video · Supporting
Detection - Nuclei Segmentation Classic
Video · Supporting
Measurements Mask - Cellular
Video · Supporting
Twelve engines, one operation
Per-pixel test → binary mask
Threshold vs Compare — one image vs two
Compare a pixel to a value, or to another pixel
Interval variants (LT/GT, inside/outside)
Foreground = inside a band, not just above a line
RGB variants apply the test per channel
Three thresholds, then logical AND
Otsu picks the value for you
Automatic threshold by histogram analysis

Picking the right engine

The decision is mostly determined by what's on your input side and what your foreground looks like:

One grayscale imageLoading..., foreground brighter than a value: Threshold.

One grayscale image, foreground inside an intensity band: Threshold - LT, GT.

One grayscale image, you don't know the right value: OtsuLoading..., then look at the result and adjust.

Two grayscale images, foreground where one is brighter than the other: Compare.

An RGB image, foreground has a specific color signature: Threshold (RGB) or Compare - inside interval (RGB), depending on whether the test is per-channel intensity or color-band membership.

An RGB image with foreground outside a known color band (e.g., everything not background-blue): Compare - outside interval (RGB).

The engines referenceLoading... has the per-engine parameters; this page is the family map.

What the threshold is choosing

A threshold is a single number standing in for a biological boundary — a categorical answer derived from continuous data. The pixels just above the threshold and the pixels just below it are usually similar in intensity; the threshold is the line you draw across that continuum to make a decision the rest of the workflow can act on.

That decision has a sensitivity. If moving the threshold from 100 to 95 changes the foreground area by 30%, the analysis is highly threshold-sensitive — worth reporting the value explicitly, or using automatic methodsLoading... that produce a reproducible choice. If the same change shifts the area by 1%, the foreground is well-separated and the choice is robust across small variations.

The histogramLoading... tells you which regime you're in before you commit. Two clean peaks: robust separation, the threshold lives in the valley between them. One smooth distribution: the threshold is an editorial line on a continuum, and the choice deserves articulation.

Share This Term
Term Connections