Created
September 6, 2010 12:16
-
-
Save joelthelion/566965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#perform histogram equalization with numpy, without explicitly computing the histogram | |
#im is a numpy array, of any dimension | |
im2 = numpy.sort(im.ravel()).searchsorted(im) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Courtesy of http://webcache.googleusercontent.com/search?q=cache:iUa5-bFeS_IJ:www.janeriksolem.net/2009/06/histogram-equalization-with-python-and.html+python+histogram+equalization&cd=1&hl=fr&ct=clnk&gl=fr&client=firefox-a