Computer Vision Histogram 27032024 085808am
Computer Vision Histogram 27032024 085808am
Histogram Processing
HISTOGRAM PROCESSING
• Let rk , for k = 0,1, 2,…,L − 1, denote the intensities of an L-level digital
image, f (x, y).
• The unnormalized histogram of f is defined as
• where, as usual, M and N are the number of image rows and columns,
respectively.
• The sum of pr(k) for all values of k is always 1.
• The components of pr(k) are estimates of the probabilities of intensity
levels occurring in an image.
• Histograms are simple to compute and are also suitable for fast
hardware implementations, thus making histogram-based techniques
a popular tool for real-time image processing.
• Histogram shape is related to
image appearance.
• Fig. shows images with four
basic intensity characteristics:
• dark
• Light
• low contrast
• high contrast
• The image histograms are also
shown.
• In the dark image that the most
populated histogram bins are
concentrated on the lower
(dark) end of the intensity scale.
• Discuss histograms for other
two images
• Show in matlab
HISTOGRAM EQUALIZATION
• 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 value, s, for a given intensity value r in the input
image.
• T(r) is a monotonic increasing function in the interval 0 ≤ r ≤ L − 1;
• 0 ≤ T(r) ≤ L − 1 for 0 ≤ r ≤ L − 1.
• In some formulations, we use the
inverse transformation and change the
condition (a) into strictly monotonic
Original Histogram
• Values of the histogram equalization transformation function are
obtained using the equation given below, for instance,