KOKEI

Research notes Note 02

How to measure contrast response

如何量測對比響應

Two contrast controls with the same label can produce different tonal behavior. Measuring their responses is more informative than comparing the slider numbers.

Image evaluation

Start with a neutral ramp.

Use an input with known encoded values, record its color space and transfer function, and hold other controls constant. Compare outputs at multiple settings. An identity setting should be checked separately. Interpret the result in the chosen signal domain; encoded values are not scene luminance.

Reference run · Contrast v1.0

We ran 65 neutral sRGB patches through the KOKEI Contrast v1.0 reference implementation at −100, 0 and +100. At +100, an encoded input of 0.204 falls to 0.116, while an input of 0.502 rises to 0.674. The endpoints stay fixed in this run.

FIG. 01At +100, lower inputs darken and upper inputs brighten. At −100, the response moves toward mid-gray. The dotted diagonal shows the unchanged output at 0.

Horizontal axis: sRGB-encoded input. Vertical axis: output luma re-encoded as sRGB.

Repeat the test

  1. Open the tagged sRGB ramp. Hold other controls and automatic processing constant, and export in sRGB at the original size.
  2. Run the neutral setting and one setting on each side. Record the app version, the exact settings, and the output bit depth. The CSV records encoded signals from 0 to 1. The KOKEI reference computes linear sRGB luma before encoding it back to sRGB.
  3. Sample the center of each 16-pixel patch and plot output against input. The result describes the tonal response on this ramp. Color appearance, local contrast and preference need separate tests.
Test target · 65 gray patches with an embedded sRGB profile

Reference implementation: KOKEI Contrast v1.0, Python, Git 037fc6d. Samples are synthetic.

Interactive gray ramp

Illustration: y = clamp(0.5 + k(x − 0.5), 0, 1). Values are normalized signal levels, not measured luminance. This is not the KOKEI Contrast implementation.

INPUT / NORMALIZED

OUTPUT / NORMALIZED

00.5110

What to look for.

The curve reveals a pivot, changes in slope, clipping and endpoint behavior. A neutral ramp does not reveal all color or spatial effects. Add chromatic patches, edge targets and photographs under controlled conditions. Compare multiple scenes without retuning the same setting.

Repeatability before ranking.

Record software versions, inputs, settings, output encoding and any automatic processing. Run the same tests on later versions to identify regressions. Separate measured differences from expert preference: a higher contrast slope is not inherently better.

Where KOKEI stands.

KOKEI has developed contrast reference implementations and test vectors as engineering research assets. They are distinct from the simple mathematical illustration above. Product integration and broader perceptual validation are separate steps; no finished external evaluation service is claimed.

KOKEI Research · Technical note / exploratory methodology, not a validated benchmark.

Back to research notes ↗
View the published article on kokei.app