mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-22 18:22:26 +00:00
white_from_data anchored the plateau search on the absolute maximum, so a handful of stray samples above saturation (Canon EOS 70D CR2: 83 of 20.6M, up to 14426 vs. a plateau at 13583) made it fall back to 2^bits-1. The image rendered ~0.3 EV dark and clipped highlights were never seen as clipped. Skip up to half a plateau's worth of strays when locating the top. Co-Authored-By: Claude Opus 5.5 <[email protected]>