from machinevisiontoolbox import Image
im = Image.Read('street.png')
hist = im.hist()
hist.plot(type='cdf') # CDF plot