We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Answers
So, how did this become a library question? Its a question about how to implement some code, i.e , a programming question.
I got this working in processing, and actually I got a better , much faster version working in processing - so fast it can be used as a real time filter ( from 2480 ms for a pic to 186 ms for a pic). I didn't write it, but adapted it to processing . If anyone is interested, Ill post the code. Its a cool effect. And its FAST.
Here's the imageJ/fiji code: https://github.com/axtimwalde/mpicbg/tree/master/mpicbg/src/main/java/mpicbg/ij/clahe
Here's the code adapted for processing.Run it and press any key to see the effect you can play with the values of slope, bins, and radius. Its real nice effect that can be used with other filters for painterly effects.