Skip to content
Part IA Michaelmas Term

Sigmoidal Tone Mapping

Why Sigmoid?

Sigmoidal curves mimic analog film response:

  • Film was engineered over decades for good tone reproduction
  • Sigmoid shape compresses both highlights and shadows smoothly
  • Preserves midtone contrast

Sigmoidal Tone Curve

Shape

  • Toe: Gentle rolloff in shadows
  • Linear region: Steep slope for midtones
  • Shoulder: Gentle rolloff in highlights

This S-curve naturally compresses extreme values while preserving detail in the midtones.

The Reinhard Formula

The standard two-parameter sigmoidal tone curve:

R(x,y)=R(x,y)b(aLm)b+R(x,y)bR'(x, y) = \frac{R(x, y)^b}{(a \cdot L_m)^b + R(x, y)^b}

where:

  • R(x,y)R(x, y) is the input linear pixel value
  • LmL_m is the geometric mean (log-average luminance) of the scene
  • aa is the exposure parameter (controls brightness)
  • bb is the contrast parameter (controls S-curve steepness)

Geometric Mean

The geometric mean normalises for scene brightness:

Lm=exp(1N(x,y)ln(L(x,y)))L_m = \exp\left(\frac{1}{N} \sum_{(x,y)} \ln(L(x,y))\right)

where L(x,y)L(x,y) is the luminance at each pixel.

Why Geometric Mean?

  • Less affected by extreme values than arithmetic mean
  • Provides stable reference across different scenes
  • Handles HDR values appropriately

Sigmoid curves with different a and b values

Parameters

Exposure Parameter aa

Controls overall brightness:

aa ValueEffect
Smaller aaBrighter image
Larger aaDarker image

Mathematical explanation: A smaller aa decreases (aLm)b(a \cdot L_m)^b in the denominator, yielding larger output values.

Contrast Parameter bb

Controls curve steepness:

bb ValueEffect
Higher bbMore contrast (steeper midtone)
Lower bbFlatter response (less contrast)

Higher bb compresses highlights and shadows more aggressively.

Simplified Formula (b=1b = 1)

When b=1b = 1:

R=RaLm+RR' = \frac{R}{a \cdot L_m + R}

This simpler form is often used for quick approximations.

Advantages of Sigmoidal Curves

AdvantageDescription
Film-like responseFamiliar look for photographers
Smooth rolloffNo harsh clipping at extremes
Preserved midtonesGood detail where most visible
Parameter controlAdjustable exposure and contrast
Scene adaptationUses geometric mean for automatic scaling

Practical Implementation

Algorithm

  1. Compute luminance L(x,y)L(x,y) for each pixel
  2. Calculate geometric mean LmL_m
  3. Apply sigmoidal formula with chosen aa and bb
  4. Output is in [0, 1] range

Parameter Selection

Scene TypeTypical aaTypical bb
Normal daylight0.181.0
High contrast0.121.5
Low contrast (fog)0.250.8

Comparison with Other Methods

MethodProsCons
Linear scalingSimpleHarsh clipping
Reinhard sigmoidSmooth, film-likeMay need parameter tuning
Local operatorsDetail preservationHalo artefacts

Summary

  • Sigmoidal tone mapping mimics film response with S-curves
  • Parameters aa (exposure) and bb (contrast) control the curve
  • Geometric mean provides scene-adaptive normalisation
  • Smooth rolloff in highlights and shadows preserves detail

Past Paper Questions

2024 Paper 3 Question 3: Explain how sigmoidal tone mapping works. What do the parameters control?

2023 Paper 3 Question 4: What is the geometric mean and why is it used in tone mapping?

2022 Paper 3 Question 3: Compare sigmoidal tone mapping to simple exposure adjustment.