Data Science, Neural Networks, Computer Vision, Machine Learning, Artificial Intelligence.
image. Now, let’s compare the original and the equalized histograms. We will use the same code that we used to view the original histogram. hist,bins = np.histogram(equ.flatten(),256,[0,256]) cdf = hist.cumsum() cdf_normalized = cdf * float(hist.max()) / cdf.max() plt.plot(cdf_normalized, color =