This is an Image Enhancement technique to improve contrast.
We model a cumulative distribution function over the probability of a pixel to be at most a given intensity at a point . In simple terms, we aim to linearise this function, which would result in a near-flat histogram.

This can be done across 1 channel for greyscale images and 3 channels for RGB.