Skip to content

Instantly share code, notes, and snippets.

@neverlva
neverlva / CLAHE.c
Created March 28, 2024 07:45 — forked from shellqiqi/CLAHE.c
Contrast Limited Adaptive Histogram Equalization
/*
* ANSI C code from the article
* "Contrast Limited Adaptive Histogram Equalization"
* by Karel Zuiderveld, karel@cv.ruu.nl
* in "Graphics Gems IV", Academic Press, 1994
*
*
* These functions implement Contrast Limited Adaptive Histogram Equalization.
* The main routine (CLAHE) expects an input image that is stored contiguously in
* memory; the CLAHE output image overwrites the original input image and has the