Histogram Equalization
Histogram Equalization
over the entire brightness range (dynamic range). This means, attempting to obtain a brightness distribution where all values are equally probable. (For an arbitrary image this can only be approximated.) Intensity levels of an image can be seen as random variables in the interval [0, L-1] where L is the number of possible intensity levels. The normalized histogram of an image is given by
p(rk ) nk / MN
intensity value
P(rk) can be seen as the probability of occurrence of intensity level rk in an image. Therefore the histogram can be treated as a discrete probability density function (PDF). The idea of histogram equalization is to find a monotonic pixel brightness transformation T that gives a histogram that is uniform over the whole dynamic range. (a uniform PDF). The monotonic property is there in order to guarantee that output intensity values will never be less than the corresponding input intensity values.
Input histogram
S k T (rk ) ( L 1) pr (rj )
j 0
( L 1) k nj MN j 0
The input intensity level rk is mapped onto an output intensity sk by the transformation.