Image Enhancement
DISCRETE VERSION OF HISTOGRAM EQUALIZATION
For a digital image with a total of n pixels and L gray levels occurring nk times respectively, the PDF may be approximated by the histogram
The histogram equalizing transformation is given by
Note that this transformation may yield values of which may not equal the available quantized gray levels.
The values will have to be quantized, and hence the output image may only have an approximately uniform histogram.