Linear Output: composite support, correction toggles, and no-op fixes - #756
Merged
marcinz606 merged 4 commits intoAug 4, 2026
Merged
Conversation
Three narrowband exposures are decoded and merged via merge_rgb_triplet() into a single combined 16-bit TIFF. No sensor correction (not applicable to narrowband captures). WB and device metadata from the primary exposure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Stitch composites are decoded per-part with flatfield and sensor correction applied before assembly (clean seams, no channel crosstalk). Stitch + RGB-scan triplet combinations supported: each part can be a triplet, producing one TIFF from all source files. Triplet parts skip sensor correction (no leakage with narrowband exposures). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Optional checkboxes (WB, flatfield, sensor correction) let users bake corrections into camera RAW linear exports. All default to off (raw dump philosophy). Hidden for Pakon/DNG sources where they don't apply. Stitch composites always apply flatfield + sensor per-part regardless. Warning hint shown when any correction is active. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cameras report RGGB quads where G1 and G2 can differ slightly. Averaging both greens for the normalization denominator matches what the demosaiced green channel represents (interpolated from both CFA positions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
@marcinz606 The stitch+triplet combo path (e.g. 4-part stitch of triplets = 12 files → 1 TIFF) is only covered by synthetic tests — I didn't have the triplet + stitch files raw files to test it for real. You might have some files handy from when you built that feature, could you give it a spin? |
Owner
|
tested it, works |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three additions to the Linear Output export (#722):
Composite sources — Linear Output now handles multi-file sources:
Correction toggles (camera RAW only) — three checkboxes to optionally bake corrections before writing:
Testing
27 new tests (79 total): 8 triplet, 8 stitch, 11 corrections.
Verified with real Nikon Z f NEF files (single frame and stitch composite).
docs/USER_GUIDE.mdanddocs/PIPELINE.mdupdated.