Files
lightcraft/crates
Claude 146cb7b975 LR-MERGE-HDR: the merge no longer depends on the order the frames come in
The same bracket merged in another order gave a different result: on real ARW brackets, the app's selection
order and the CLI's file order differed on 0.6 % of the pixels (up to 102 levels), while the same order gave
byte-identical files. Alignment seeds were the frames' input positions, and sums, deghost masks and brightness
ties followed them too.

merge_hdr now puts the frames in brightness order first (ties by median, then a content fingerprint, never by
position), runs everything in that order, and returns the per-frame results (EV, alignment, reference index)
in the caller's order. Test: every permutation of a bracket gives the same radiance and deghost overlay bit for
bit, and the same per-frame results (fails before: "the radiance differs").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gRtdWF1E9358FfzhzYqCS
2026-10-13 05:57:13 +00:00
..
2026-10-13 11:05:45 +07:00
2026-10-13 11:05:54 +07:00
2026-10-13 11:02:38 +07:00
2026-10-11 12:03:53 +00:00
2026-10-13 00:13:41 -04:00
2026-10-11 13:09:34 +00:00
2026-10-13 11:05:53 +07:00
2026-10-09 20:34:54 -04:00
2026-10-13 12:09:34 +07:00