Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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)
You can’t perform that action at this time.