darktable-org / darktable-org/rawspeed
Nikon D7000 raw white level too high
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 456
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
The following shows a small part of an overexposed Nikon D7000 raw file in darktable 3.9.0+1483~gfb7ae22e9, with -1 EV applied in the exposure module, and raw clipping indicator enabled:

As you can see, most the magenta area is not marked as overexposed.
RawTherapee's camconst.json lists the max RGB levels as
"white": [ 16300, 15700, 16300 ], // typical R 16383, G 15778, B 16383
https://github.com/Beep6581/RawTherapee/blob/dev/rtengine/camconst.json#L1680
Changing the raw white level to 15780 (close to the 'typical' G level of 15778) produces the following - the clipping indicator closely matching the clipped (magenta) areas:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Nikon D7000 clipping behavior described in the issue and compare the raw white-level values with RawTherapee's camconst.json entry. Done means the raw clipping indicator matches the clipped magenta areas without the reported overexposure mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100