C# Simple and unoptimized implementation of the famous CLAHE filter.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vs/Clahe_w/v14
Clahe_w
Clahe_w.sln
LICENSE.md
README.md

README.md

CLAHE CS implementation

This repo is a simple C# translation of the ANSI C code from the article "Contrast Limited Adaptive Histogram Equalization" by Karel Zuiderveld, in "Graphics Gems IV", Academic Press, 1994 There is a (probably much better) implementation in OpenCV but I needed the code to run on its own without any library dependency.

The image hereunder shows the application of the algorithm to one of my images (the GUI has slightly evolved).

The code should work on all .NET versions (it makes use of winforms).

To-dos

This code is minimalist (if not bad), here are some things I'll do when/if I find the time:

  • Allow to load any image
  • Debug cases of image sizes that arent powers of 2
  • Work on any type of data, not only 8 bits
  • Extend algo to color images
  • ...

Dependencies

None, that was the goal.

Ackowledgment

License

MIT licensed, c.f. the LICENSE.md file.

Contact

Do not hesitate to contact me if you need some help, you may find my contact here.