Computer Vision, Histogram Equalization, Python3.
color. Build the Cummulative Histogram (CH) by adding the previous color frequency for the next one and so on. f(i) is the cummalative histogram. Calculate the Normalized Cummulative Histogram (NCH) by multiplying CH with the coefficient: K / (2 * N) that K is all possible colors (usually from 0 to