「実践コンピュータビジョン」読んで書いてたらこんなのできた。
元画像(http://www.ashinari.com/2010/07/23-338955.php?category=243)
できたの
from PIL import Image from numpy import * import imtools from pylab import * im = array(Image.open("sample/artist.jpg").convert("L")) im2, cdf = imtools.histeq(im) ## imshow(im) imshow(im2) show()