I\'d like to implement an \"auto levels\" option for a UIImage that I am displaying in my iPhone app. Before I try to implement it myself, I was wondering if there are any i
This explains auto-levels (i.e., histogram equalization) really well:
http://www.generation5.org/content/2004/histogramEqualization.asp
They also have Java implementation of the same.