Skip to content

Main content

Stain Channel Optical Density Tool

Compute base-ten optical density from supplied dark-corrected research image intensities; negative values remain visible.

Loading tool…

Description

Subtract log10(intensity-darkOffset) from log10(referenceIntensity-darkOffset).

Stain analysis distinguishes measured intensity, blank correction, optical density, and linear channel coordinates. These are different representations whose interpretation depends on calibration and the supplied stain model.

Subtract log10(intensity-darkOffset) from log10(referenceIntensity-darkOffset).

When to use this tool

Use Stain Channel Optical Density when you need one explicit stain-signal component.

How to use the tool and how it works

  1. Enter intensity, referenceIntensity, darkOffset. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read opticalDensity. Use the output convention below.

Require intensity and referenceIntensity above darkOffset. Subtract log10(intensity-darkOffset) from log10(referenceIntensity-darkOffset).1

Input fieldMeaning and unitsAccepted input
intensityIntensityRequired. Finite number.
referenceIntensityReference IntensityRequired. Finite number.
darkOffsetDark OffsetRequired. Finite number.
Output fieldInterpretationReturned shape
opticalDensityOptical DensityRequired. Finite number.
json
{
  "input": {
    "intensity": 10,
    "referenceIntensity": 100,
    "darkOffset": 0
  },
  "output": {
    "opticalDensity": 1
  }
}

Limitations and assumptions

  • Intensity quantities share one scale; optical density can be negative when measured intensity exceeds reference, and no stain concentration, calibration, or diagnostic meaning is inferred.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Review the complete imaging and stain calibration, deconvolution model, and appropriate professional interpretation separately.

References

  1. Calculation and input contract: histology/stain-channel-optical-density — tool.io

Similar or alternative tools