Raw over exposure indicator

I had thought raw overexposure indicator is “absolute”, and it shows the pixels clipped in the sensor. Today I noticed that if I change white balance also the indicated areas change on the picture. Below are examples at 2000K and 25000K. At 2000K the white wall illuminated with blue light is shown as clipped, but with 25000K not.

image image

A comment in the code explaining the rationale behind this:

  // the clipping is detected as >1.0 after white level normalization

  /*
   * yes, technically, sensor clipping needs to be detected not accounting
   * for white balance.
   *
   * but we are not after technical sensor clipping.
   *
   * pick some image that is overexposed, disable highlight clipping, apply
   * negative exposure compensation. you'll see magenta highlight.
   * if comment-out that ^ wb division, the module would not mark that
   * area with magenta highlights as clipped, because technically
   * the channels are not clipped, even though the colour is wrong.
   *
   * but we do want to see those magenta highlights marked...
   */

[edit: I don’t find this so convincing if we consider an unbounded linear scene-referred workflow though… it only makes sense if the modules that follow are unable to cope with scene-referred values greater than 1.0…]

That’s also my thinking. I’m working in scene-referred workflow, so I want to see the absolute clipping, not the computed > 1.0 clipping.

Turn off WB module. After that you can check what is clipped. https://www.darktable.org/2016/10/raw-overexposed/

Compare with for example Hraw https://github.com/lightful/hraw/releases
Drag the raw file onto revelator.

Hraw is else a tool to measure dynamic range from raw files https://youtu.be/N4BZkqEq_H8