Histogram Specification
Histogram Specification
Histogram Specification
Histogram Specification
Histogram is a graphical representation, showing visual representation of
distributed data. It estimates the probability distribution of a continuous variable
and the term was coined by Karl Pearson.
A histogram consists of the tabular frequencies plotted on a graph; the total area
is equal to the number of data. Normalized histogram is represented by showing
the related frequencies. Histograms are used to plot the density of the data,
estimating the “probability density function”. The total area of a histogram used
for probability density is always normalized to 1.
Example:
T[i] = (G-1).c(i)
Where, G is the number of gray levels and c(i) is the normalized cumulative
histogram of the original image.
The method usually increases the global contrast of the images, especially when
the usable data of the image is represented by close contrast values. Histogram
equalization accomplishes spreading out the most frequent intensity values. This
method is usually useful with the images with backgrounds and foregrounds that
are both bright or both dark. This method can lead to better view of bone
structures in x-ray images, and to better detail in photographs that are over or
under-exposed. The best feature of Histogram Equalization is that it can be
reversed back to original Histogram.
L is the total number of gray levels in the image, n being the total number of
pixels in the image, and p being in fact the image's histogram, normalized to [0,1].
Thus, a processed (output) image is obtained by mapping each pixel with level
rk in the input image into a corresponding pixel with level sk in the output image.
The transformation (mapping) given is called Histogram Equalization.
Example:
Histogram Specification/Matching:
Histogram matching is a method in image processing of color adjustment of two
images using the image histograms.
It can be used to normalize two images, when the images were acquired at the
same local illumination (such as shadows) over the same location, but by different
sensors, atmospheric conditions or global illumination.
5. For each pixel in the original image, if the value of that pixel is rk, map this
value to its corresponding level sk; then map level sk into the final level zk.
Use the precomputed values from Steps (2) and (4) for these mappings.
Example: