Machine Learning, Histogram Equalization.
finally merge back, as shown in the code below. I am also providing code through numpy arrays for better comprehension. def histogram_equalization(img_in): # segregate color streams b,g,r = cv2.split(img_in) h_b, bin_b = np.histogram(b.flatten(), 256, [0, 256]) h_g, bin_g =