Panasonic S5: Underexposed images green/Black levels not read #9811
Description
Describe the bug/issue
Underexposed images are very green for the Panasonic S5 raw files (rw2). For instance, I was capturing the Milky Way by way of stacking. So I set up the proper exposure for iso3200 with a test shot, but switched it to iso640 before taking the exposures for the stack to further reduce noise (640 is the dual-gain point for this sensor).
While investigating why my files were so green I saw this ticket: #9285 which seems similar. Based on that I used exiftools to find the Black levels and that seems to have fixed.
Expected behavior
The expected behavior is shown in the screenshots without the green cast and much darker exposure overall. The exposure was pushed 5 stops on each image.
Correct Behavior after setting the black levels

Looking at rawspeed has support in cameras.xml for it and looks to set the default to 509. Glancing at the rawspeed decoder, it attempts to read the values from the exif properly, but must fail for some reason.
Here's the exif snippet:
exiftool P1010852.RW2 | grep -i Black
Black Level Red : 512
Black Level Green : 512
Black Level Blue : 512
I've attached a test image and I license it under under CC0 for testing purposes.
samples.zip
To reproduce bump the exposure to +6ev and to correct use 509 or 512 as the black levels in raw black/white levels module. Happy to help and dig further once I have more time.
Platform
- darktable version : 3.7.0.r699.g081b924ed5-1
- OS : Linux 5.10.53
- Linux - Distro : Manjaro
- Memory : 64gb
- Graphics card : Nvidia Ti2060
- Graphics driver : Nvidia
- OpenCL installed : yes
- OpenCL activated : not available / probably a primus issue...
- Xorg : 1.20.13
- Desktop : XFCE
- GTK+ : 4.2
- gcc : 11.1
- cflags : unknown/defaults
- CMAKE_BUILD_TYPE : unknown/defaults
Metadata
Assignees
Type
Projects
Status
Resolved
