Repository navigation
Added Local Dynamic Contrast Improvement (LDCI) module - #38
Merged
Merged
Conversation
Fixed-point port of Contrast Limited Adaptive Histogram Equalization (CLAHE) from the Infinite-ISP algorithm-design model, wired into the pipeline after Color Space Conversion and before Sharpening. - Per-tile histogram (256 bins), clip + redistribute, LUT from the cumulative distribution via a precomputed reciprocal-multiply (the histogram total after clip/redistribute is always wind**2 + 256 for a given wind, so no real divider is needed). - Bilinear blending of neighbouring tiles' LUTs at tile boundaries to avoid visible seams (corner: own LUT, edge: 2-LUT blend, interior: 4-LUT blend), Q0.10 fixed-point weights. - New `ldci` config block (is_enable, clip_limit, wind, is_save), disabled by default; verified bit-exact identical output to current main when disabled. - Also fixes the same unreachable max-gain exit condition in execute_with_3a_statistics() as Infinite-ISP#54 (RM has the same clamp-vs-comparison mismatch). - Updates docs/algorithm-description.pdf and the architecture diagram with the new module. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Closes #37
Fixed-point implementation of CLAHE from the Infinite-ISP algorithm-design model, wired in after Color Space Conversion, before Sharpening.
ldciconfig block, disabled by default. Verified the output being identical to main branch output when disabled.docs/algorithm-description.pdfand the architecture diagram.