Optical density is defined as:
OD = −log₁₀(I / I₀)
Where I is the transmitted intensity (pixel value) and I₀ is the incident intensity (blank reference, typically 255 for 8-bit images). The Beer-Lambert law then states:
OD = ε · c · l
Where ε is the molar extinction coefficient of the chromogen, c is the concentration, and l is the path length (tissue section thickness). Since ε and l are constant for a given stain and tissue preparation, OD is directly proportional to concentration c.
Key implications:
- Additivity — When multiple stains overlap, their ODs add: OD_total = OD_DAB + OD_hematoxylin. This additivity is the mathematical basis for color deconvolution.
- Linearity — Twice the concentration gives twice the OD. In raw RGB, this is an exponential relationship: I = I₀ · 10^(−OD), so concentration differences are compressed at high staining levels.
- Range — Typical tissue OD values range from 0 (no staining, full transmission) to about 2.0 (heavy staining, 1% transmission).