v9.1.1
Menu

Exposure Adjustment

Apply exposure adjustment to HDR luminance values.

Before tone mapping, it's common to adjust the overall brightness using exposure compensation. This is specified in "stops" or EV (exposure value), where each stop doubles or halves the brightness.

Ladjusted=L⋅2exposureL_{adjusted} = L \cdot 2^{exposure}

Examples:

  • exposure = +1: doubles brightness (1 stop brighter)
  • exposure = -1: halves brightness (1 stop darker)
  • exposure = 0: no change

This simulates opening/closing the camera aperture or changing shutter speed, allowing you to set the overall brightness level before compressing with a tone mapper.

Example

Input
adjust_exposure(1.0, 1.0)
Output
2.0
Reasoning

For L = 1.0 and exposure = +1 stop:

  1. Compute multiplier: 2^1 = 2.0
  2. Apply to luminance: 1.0 × 2.0 = 2.0
  3. Result: brightness doubled (1 stop brighter)

Constraints

  • L is HDR luminance value (non-negative)
  • exposure is adjustment in stops (can be negative, zero, or positive)
  • Return adjusted luminance rounded to 4 decimal places

More from CV: Computational Photography

solution.py

Test results

Sign in to run your code against the test cases.