StrataQuest Home › StrataQuest Glossary › Background Removal
Image Tool

Background Removal

Lowering a high background level before detection

View
Definition
In a 16-bit fluorescence image the space between cells is rarely black. It hovers around an average level with random scatter, like hiss under music. Background Removal estimates that background as a model image, smooths the model and subtracts it, so objects stand on a lower floor. It is not illumination correction: light falling off toward the edges of a field is the job of shading correctionLoading....
Subtract a background model
Estimate, smooth, subtract
Object Radius sets the scale
Set it to the size of the larger objects
Mostly a 16-bit problem
Background that behaves like white noise
Not shading correction
Edge falloff has its own tools

How It Works

Suppose you open a 16-bit DAPI channel from a kidney section. Between the nuclei the pixels aren't zero. They scatter around some level, high enough that a thresholdLoading... or a mean-intensity measurement picks part of it up. The Engines Reference calls that background white noise: random values with a specific average value and finite variance.

Background Removal sits in a layer's Pre-Processing section, under Add Operations (Advanced). It generates a background model from the input grayscale imageLoading... and subtracts the model from the original. Before subtracting, it smooths the model with a filter whose size is the Background smoothing filter radius.

Object Radius tells it how large the larger objects are, so they aren't taken for background. Tick Generate background image to get the model itself as an extra output.

The reference doesn't say how the model is built. Its closest documented relative is the Top-hatLoading... operation in the Basic Operations Module, which subtracts a morphological opening, "an estimated background", and whose reference example shows an attenuation of the high background. Whether Background Removal uses an opening internally is not stated, so don't tune it as if it did.

Simplified

The background between cells in a fluorescence image is rarely black. Background Removal estimates that background as an image of its own and subtracts it, so cells stand out against a lower floor. Tell it the size of your larger objects, or it will shave them down too.

Science Behind It

Why background is never zero. In general, a camera adds an offset and read noiseLoading... even in darkness, and tissue adds autofluorescenceLoading... and out-of-focus glow. The sum is a floor with random scatter. In a 16-bit image, with values up to 65,535, that floor can sit hundreds of counts up. StrataQuest's own documentation describes the same thing elsewhere: the Legacy Spectral UnmixingLoading... engine notes that 16-bit fluorescence background is almost never pure black, with values in the range of 100 to 300.

Background versus shading. Image formation is often written as the specimen's signal multiplied by the illumination, with an additive floor on top. Shading is the multiplicative part, a lamp brighter in the middle of the field than at its edges. It is corrected with a correction image of the light path: StrataQuest's Shading Correction, or Illumination Correction and FL Shading Correction in TissueFAXS. Background Removal works on the additive floor, by subtraction.

The scale question. Any method that tells background from objects by size needs a definition of "large". In general, a background estimate made with a window smaller than a nucleus follows the nucleus itself, and subtracting it carves the object hollow or leaves a dark rim. That is the reason behind the reference's warning that a too-small Object Radius lets larger objects be affected by the removal.

Simplified

A fluorescence image carries two kinds of unwanted light. One is a floor of background everywhere, which Background Removal subtracts. The other is uneven lighting, brighter in the middle of the field, which shading correction fixes with a reference image. Background Removal also needs the size of your objects, so that a large nucleus is not treated as background.

Parameters & Settings

ParameterTypeDescription
EnabledCheckboxTurns the engine on or off. While unchecked, the engine is skipped in the analysis workflow.
Input ImageGrayscale imageThe channel to process. Add one engine per channel.
Generate background imageCheckboxAlso outputs the estimated background model image, so you can see what is being subtracted.
Object RadiusNumericThe average radius of the larger objects in the image. If it is too small, larger objects are affected by the removal.
Background smoothing filter radiusNumericThe size of the smoothing filter applied to the estimated background model before it is subtracted.

The reference prints no default values and no recommended range. In its example the settings appear only in figures. A workable path is to set Object Radius near the radius of the largest objects you care about, tick Generate background image on a test region, and look at the model. If objects show up in it as bright blobs, Object Radius is too small.

Source: StrataQuest 8.1 Engines Reference, ch. 5 (pp. 14–17), ch. 6.8 Top-hat (pp. 281–283), ch. 39 (p. 515); User Manual §9.4 (pp. 130–134); TissueFAXS 8.1 User Manual §4.4.3 (pp. 91–96).

Simplified

Two settings control the result. Object Radius is how big your larger objects are; too small, and they get dimmed along with the background. The smoothing radius keeps the background estimate gentle. Tick Generate background image to see what is being subtracted.

Practical Example

Take the Engines Reference's own case: a small ROI in a kidney sample, acquired at 16 bits in DAPI, FITC, Texas Red and Cy5, with a high background.

  1. Add Background Removal to the layer's Pre-Processing once per channel, with that channel as Input Image.
  2. Use one group of settings for DAPI and a second for FITC, Texas Red and Cy5, as the reference does. It doesn't say why; a likely reason is that the larger objects differ in size between the nuclear channel and the others.
  3. Check each background model with Generate background image on a test region before running the whole sample.
  4. Feed the corrected DAPI image to NucleiLoading... detection, and the corrected marker channels to Standard MeasurementsLoading... as Shades images.

Decide on purpose which image you measure. Background-subtracted intensities are lower than raw ones by the local value of the model, so use the same choice, and the same settings, for every sample you compare.

Simplified

In the reference's kidney example, four 16-bit channels each had a high background. Background Removal ran on every channel, with one setting for DAPI and another for the rest, and the stained structures then stood against a lower background.

Connected Terms

Share This Term
Term Connections