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:
where:
- is the input linear pixel value
- is the geometric mean (log-average luminance) of the scene
- is the exposure parameter (controls brightness)
- is the contrast parameter (controls S-curve steepness)
Geometric Mean
The geometric mean normalises for scene brightness:
where 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
Parameters
Exposure Parameter
Controls overall brightness:
| Value | Effect |
|---|---|
| Smaller | Brighter image |
| Larger | Darker image |
Mathematical explanation: A smaller decreases in the denominator, yielding larger output values.
Contrast Parameter
Controls curve steepness:
| Value | Effect |
|---|---|
| Higher | More contrast (steeper midtone) |
| Lower | Flatter response (less contrast) |
Higher compresses highlights and shadows more aggressively.
Simplified Formula ()
When :
This simpler form is often used for quick approximations.
Advantages of Sigmoidal Curves
| Advantage | Description |
|---|---|
| Film-like response | Familiar look for photographers |
| Smooth rolloff | No harsh clipping at extremes |
| Preserved midtones | Good detail where most visible |
| Parameter control | Adjustable exposure and contrast |
| Scene adaptation | Uses geometric mean for automatic scaling |
Practical Implementation
Algorithm
- Compute luminance for each pixel
- Calculate geometric mean
- Apply sigmoidal formula with chosen and
- Output is in [0, 1] range
Parameter Selection
| Scene Type | Typical | Typical |
|---|---|---|
| Normal daylight | 0.18 | 1.0 |
| High contrast | 0.12 | 1.5 |
| Low contrast (fog) | 0.25 | 0.8 |
Comparison with Other Methods
| Method | Pros | Cons |
|---|---|---|
| Linear scaling | Simple | Harsh clipping |
| Reinhard sigmoid | Smooth, film-like | May need parameter tuning |
| Local operators | Detail preservation | Halo artefacts |
Summary
- Sigmoidal tone mapping mimics film response with S-curves
- Parameters (exposure) and (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.