H (R) N P (R) N /MN: Is The KTH Intensity Value and N
H (R) N P (R) N /MN: Is The KTH Intensity Value and N
The histogram of a digital image with intensity levels in the range [0, L – 1] is
a discrete function h( rk ) = nk , where rk is the kth intensity value and nk is the
number of pixels in the image with intensity rk .
The horizontal axis of each histogram plot corresponds to intensity values, rk.
The vertical axis corresponds to values of h( rk ) = nk or p( rk )=nk /MN if the
values are normalized. The total number of pixels in the image is denoted by the
product MN, where, M and N are the row and column dimensions of the image.
Thus, histograms may be viewed graphically simply as plots of h( rk ) = nk versus
rk or p( rk ) = nk /MN versus rk
Histogram equalization:
Consider for a moment continuous intensity values and let the variable r
denote the intensities of an image to be processed. We assume that r is in the range
[0, L - 1], with r = 0 representing black and r = L - 1 representing white. For r
satisfying these conditions, we focus attention on transformations (intensity
mappings) of the form
that produce an output intensity level s for every pixel in the input image having
intensity r. We assume that:
In some formulations, we use the inverse
Let pr(r) and ps(s) denote the PDFs of r and s, respectively, where the
subscripts on p are used to indicate that p r and p s are different functions in
general. A fundamental result from basic probability theory is that if p r (r) and
T(r) are known, and T(r) is continuous and differentiable over the range of values
of interest, then the PDF of the transformed (mapped) variable s can be obtained
using the simple formula
…………………….(3)
Thus, we see that the PDF of the output intensity variable, s, is determined by
the PDF of the input intensities and the transformation function used.
A transformation function of particular importance in image processing has
the form
…………………….(4)