Data Science, Image Processing, Python, Programming, Histograms.
dark_image_grey = img_as_ubyte(rgb2gray(dark_image)) freq, bins = cumulative_distribution(dark_image_grey, nbins =256) target_bins = np.arange(255) target_freq = np.linspace(0, 1, len(target_bins)) interpolation = np.interp(freq, target_freq, target_bins) dark_image_eq =