Data Science, Neural Networks, Computer Vision, Machine Learning, Artificial Intelligence.
read, we can use the following code to view its histogram. hist,bins = np.histogram(img.flatten(),256,[0,256]) cdf = hist.cumsum() cdf_normalized = cdf * float(hist.max()) / cdf.max() plt.plot(cdf_normalized, color = 'b') plt.hist(img.flatten(),256,[0,256], color = 'r') plt.xlim([0,256])