Detection Engine

Total Area

Detecting regions by intensity thresholding

View
Definition
Sometimes the question isn't how many cells are positive but how much of the tissue is. Total Area finds the positive areas. It compares every pixel with a threshold, keeps the brighter ones as a binary maskLoading..., and labels each connected patch as an event. It doesn't split patches into cells. Measure the events' area and you have the stained extent.
Detection - Automatic Background Threshold params
Video · Primary
Detection - Total Area
Video · Primary
H&EDSPTCH
Video · Primary
User Interface - Raw Data
Video · Primary
Guided workflow - nucl and cell measurements
Video · Primary
User Interface - Object Inspector
Video · Primary
Pre processing - Basic - Virtual Channel
Video · Primary
Diagrams - Set Cut-Off - BW FW Connection V2
Video · Primary
Measurements Mask - Cellular
Video · Primary
TQ to SQ workflow
Video · Primary
Detection - Nuclei Segmentation Classic
Video · Primary
Supporting
User Interface - Image Viewer + Toolbar
Video · Supporting
Dynamic range - 16bit to 8bit normalization 4m
Video · Supporting
Dynamic range - 16bit to 8bit normalization
Video · Supporting
Dynamic range - 16bit to 8bit normalization 6m
Video · Supporting
Measurement - Standard Measurements (global) - General
Video · Supporting
User Interface - Dimensions (8bit FL)
Video · Supporting
Diagrams - How to create Histograms and Scattergrams
Video · Supporting
Pre processing - Import - Coded Image
Video · Supporting
Area-Based Segmentation
Patches, not cells
Otsu or Manual Threshold
Automatic Background Threshold
Per field or global
Use global variable
Diffuse Signal
For signals without cell boundaries

How It Works

Total Area sits in a layer's Detection section (Add > Detection > Total Area) and takes one grayscale image. The Engines Reference describes it as three operations in a row:

  1. Otsu threshold. If Automatic Background Threshold is enabled, the threshold is computed automatically with Otsu's method.
  2. Binarization. Each pixel is compared with the threshold, and pixels brighter than it are kept.
  3. Labeling. Each set of connected kept pixels gets a unique ID.

The result is a coded imageLoading... of area events. Total Area computes no measurements itself. Add Standard MeasurementsLoading... on its events to get their Area, and intensities from any channel you choose. The quick actions "Add total area of" (fluorescence) and "Add Total Area 2/3 markers" (brightfield) build this chain for you.

Simplified

Total Area picks a brightness cutoff, keeps every pixel above it, and gives each connected patch its own number. Measure those patches and you know how much of the tissue is stained.

Science Behind It

Otsu's method, where it works well. The Engines Reference states the method plainly. Otsu's threshold splits pixels into foreground and background by minimizing the variance within each class, or equivalently maximizing the variance between them. It works well when the histogram has two peaks with a deep valley between them, as clearly positive staining on a clearly negative background often does.

Where it fails. The Otsu Threshold (global) chapter names the hard cases. When the positive area is small compared with the background, the histogram is no longer two-peaked, and when both classes are broad or noise fills the valley, the valley fades. Uneven illumination can add a third class. Narrowing Lower and Upper is the documented answer, and Background RemovalLoading... beforehand is another way to even out the background.

Per field or global. A threshold computed in each field of view follows local brightness, but neighboring fields can end up with different cutoffs. One global threshold treats every field alike, which is usually what you want when you compare stained area across fields or samples. The Total Area quick action "Use Otsu Threshold (Global)" adds that engine and points Use global variable at its output.

From events to a percentage. Total Area doesn't report a percentage. In general, percent positive area is the positive area divided by the analyzed area. In StrataQuest you'd take the first from Standard Measurements on the area events and the second from the region, and combine them, for example with the Statistics Report's arithmetic. For area within a region, the User Manual recommends the Crop events to ROI's shape strategy, so patches crossing the boundary count only inside it.

Simplified

Otsu's method puts the cutoff in the valley between a bright peak and a dark peak in the histogram. It works poorly when the stained area is tiny or the lighting is uneven. To compare samples, use one global cutoff rather than one per field.

Parameters & Settings

ParameterDescription
InputA grayscale image.
Use global variableUses a global threshold instead of a threshold computed for each Field of View (FOV).
Automatic Background ThresholdEnables or disables automatic computation of the background threshold. Automatic uses Otsu's method within the range set by Lower (above the background, below the dimmest areas to detect) and Upper (above the average intensity of the areas to detect; a lower value forces a lower threshold). Manual uses a value you enter.

For a cohort, prefer a fixed cutoff over one recomputed per field: either a Manual value or Use global variable fed by Otsu Threshold (global). Then check the overlay on a weakly and a strongly stained sample before running the rest.

Source: StrataQuest 8.1 Engines Reference, ch. 45 (pp. 554–556), ch. 33 (pp. 480–481), ch. 41 (p. 538); User Manual §11.1 (pp. 153–157), §13.1 (pp. 231–233).

Simplified

Leave Automatic Background Threshold on for clear positive and negative staining, or type a Manual value to hold one cutoff fixed. Turn on Use global variable when every field should share the same cutoff.

Practical Example

Suppose you want the collagen fraction of a Masson's trichrome-stained liver biopsy, scanned in brightfield.

  1. Add Color SeparationLoading... with a marker for the blue collagen stain. The "Add Total Area 2/3 markers" quick action sets up Color Separation, Total Area on the first marker and Standard Measurements in one step.
  2. Add Total Area on the collagen marker image, with Use global variable fed by an Otsu Threshold (global) engine so every field shares the cutoff.
  3. Add Standard Measurements on the Total Area events to get their Area.
  4. Divide the summed collagen area by the analyzed tissue area, for example in the Statistics Report.

Collagen forms continuous fibers and networks, and a cell detector would cut them into pieces that mean nothing. Total Area keeps each connected network as one event and measures its extent.

Simplified

In a liver biopsy you don't need to find each collagen fiber; you need to know what fraction of the tissue is collagen. Total Area marks the collagen-stained areas, and measuring them against the tissue area gives that fraction.

Connected Terms

Share This Term
Term Connections