clahe

Crates.ioclahe
lib.rsclahe
version0.1.2
created_at2025-09-04 20:44:23.296371+00
updated_at2025-09-04 20:51:52.207542+00
descriptionPure rust image implementation of clahe
homepage
repositoryhttps://github.com/micahcc/clahe-rs
max_upload_size
id1824763
size769,041
Micah Chambers (micahcc)

documentation

README

clahe-rs

Reimplementation of opencv's CLAHE in pure rust. This includes implementing u16 -> u8 conversion which was missing in the other crates I tried.

Unlike the opencv version this:

  • does not use threads (see future work, rayon could do this)
  • does not do manual loop unrolls
  • iterates over regions rather than lines during interpolation

Its unlikely this reaches the single-core throughput of the heavily optimized opencv version (though I tried to maintain the structure that makes it possible), if you are interested in making it faster let me know.

Examples

Before After

Future work

Commit count: 27

cargo fmt