Skip to content

Added Local Dynamic Contrast Improvement (LDCI) module - #38

Merged
marianadeem-10xe merged 1 commit into
mainfrom
v1.1_ldci
Oct 24, 2026
Merged

marianadeem-10xe merged 1 commit into
mainfrom
v1.1_ldci

Conversation

@marianadeem-10xe

Copy link
Copy Markdown
Collaborator

Closes #37

Fixed-point implementation of CLAHE from the Infinite-ISP algorithm-design model, wired in after Color Space Conversion, before Sharpening.

  • Per-tile histogram equalization
  • Bilinear blending of neighbouring tiles using LUTs at boundaries to avoid seams.
  • New ldci config block, disabled by default. Verified the output being identical to main branch output when disabled.
  • Fixed the same unreachable max-gain exit condition as Infinite-ISP#54 (update on AE stopping criterion).
  • Updated docs/algorithm-description.pdf and the architecture diagram.

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>
@marianadeem-10xe
marianadeem-10xe merged commit 827dcf9 into main Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Local Dynamic Contrast Improvement (LDCI)

1 participant