| Algorithm 4 CLAHE |
| Input: Image after gamma correction I; |
| 1. Resizing l to N × N; Decompose l—(n) tiles; (n)—N × N/n × n |
| 2. Hm—histogram(m); // histogram of a n × n tile; |
| 3. Clip limit: CL—Ncl × Navg of Hn using CL; |
| 4. pixels—distribution over the remaining pixels; |
| 5. CLAHE(n)—equalization of contrast limited the histogram tile histogram for the image(l) |
| 6. bc—bilinear interpolation of CLAHE |
| Output: CLAHE processed image bc |