Skip to content
tezvyn:

Tone Mapping: Fitting HDR Light onto LDR Screens

Source: Wikipedia: Tone mappingMediumHow cards are made

Tone Mapping: Fitting HDR Light onto LDR Screens

Tone mapping compresses a vast range of light (HDR) to fit on a standard screen (LDR). It's how HDR photos and games look good on your monitor instead of having blown-out whites or crushed blacks. The footgun is creating unnatural, "over-cooked" images.

Why it exists

Our eyes and cameras can capture a massive range of brightness, from direct sunlight to a dim candle. Standard screens cannot. Tone mapping was invented to solve the problem of displaying this high-dynamic-range (HDR) information on a low-dynamic-range (LDR) device without losing all detail in the brightest and darkest parts of the image.

The mental model

Imagine you have a recording of a full orchestra (HDR) and need to play it through a single, small speaker (LDR screen). A naive approach just clips the loudest and quietest sounds. A better approach is dynamic range compression: making loud parts a bit quieter and quiet parts a bit louder so you can hear every instrument. Tone mapping does this for light, not sound, preserving visual detail across all brightness levels.

How it works

Tone mapping algorithms, or operators, are functions that map the high-range scene radiance values to the limited range of a display (e.g., 0-255 for an 8-bit color channel). Global operators apply a single, non-linear curve to the entire image, which is fast but can wash out details. Local operators are more advanced; they analyze a pixel's brightness relative to its neighbors, preserving local contrast even while reducing global contrast. This prevents a bright sky from making a foreground building a silhouette.

When to use it

Use tone mapping whenever you need to render HDR content on an LDR display. This is a standard, often automatic, step in digital photography (especially from RAW files), modern video games, film post-production, and any application that simulates realistic lighting for viewing on consumer monitors, projectors, or phones.

When not to use it

You don't need tone mapping if your entire pipeline is LDR from start to finish (e.g., editing a standard JPEG for a standard screen). You also wouldn't apply it if the target display is a true HDR monitor capable of reproducing the source's full dynamic range, as doing so would be redundant and destructive.

One canonical example

Take a photo of a person standing inside a room, with a bright window behind them. The HDR data captures both the dim details of the room and the bright scene outside. A simple exposure would either blow out the window or plunge the room into darkness. Tone mapping processes the image so you can see details in both the room and through the window simultaneously on your screen, approximating what your eyes would perceive.

Interview question

What is the primary purpose of tone mapping when displaying high-dynamic-range (HDR) content on a standard low-dynamic-range (LDR) screen?

  • a.To expand the LDR content to simulate a wider dynamic range, enhancing visual impact.
  • b.To simply clip all pixel values that exceed the LDR display's maximum brightness or fall below its minimum.
  • c.To adjust the image's color temperature and saturation for optimal display on any monitor.
  • d.To compress the broad range of light intensities into the display's limited range while maintaining perceived detail.Correct
Why?

Tone mapping's core function is to compress the wide range of light values from HDR content to fit within the limited capabilities of an LDR display, ensuring that details are preserved rather than lost. Option B describes a naive approach that tone mapping actively avoids, as it would result in lost detail.

Just read this? Test yourself on what you have been reading.

Read the original → en.wikipedia.org

You just looked this up. Could you explain it out loud?

That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles