Histogram Equalization, Opencv Python, Histogram Manipulation, Image Enhancement, Opencv.
denomenator nj = (cs - cs.min()) * 255 N = cs.max() - cs.min() # re-normalize the cdf cs = nj / N plt.plot(cs) [<matplotlib.lines.Line2D at 0x1d0b4f0b7c0>] Casting: # cast it back to uint8 since we can't use floating point values in images cs = cs.astype('uint8') plt.plot(cs)