I'm interested in creating a filter that implements Contrast Limited Adaptive Histogram Equalization(CLAHE). I think I understand how it works. You divide the image into a number of areas and perform as histogram equalization on each of those areas. Where I get lost is when you interpolate the histograms for each area.
I found this code for such a plugin that works with imageJ- and the filter works great. This is exactly what I want, but I get lost in it. Could someone give me a play by play of whats going on and some pseudo code of how to implemt this in processing. I do understand how do a histogram equalization.
The code I'm looking at is here : http://imagej.nih.gov/ij/plugins/clahe/CLAHE_.java