Histogram Processing
Histogram Processing
Report on
Histogram Processing in
Image Processing
by
Roopam Barman
Table of Contents
1. Introduction 3
8. References 17

3
Introduction
istogram processing is a fundamental technique in image processing
that involves analyzing and modifying the intensity distribution of an
image. A histogram represents the frequency of pixel intensity values,
allowing us to understand the contrast, brightness, and overall tonal distribution
of an image. By manipulating histograms, we can enhance image quality,
improve visibility, and extract meaningful information.
• Medical Imaging: Enhancing X-ray, MRI, and CT scan images for better
diagnosis.
• Remote Sensing: Improving satellite images for land use classification
and environmental monitoring.
• Security & Surveillance: Enhancing CCTV footage for better visibility in
low-light conditions.
• Photography & Image Editing: Adjusting brightness and contrast in digital
photos.
• Industrial Inspection: Detecting defects in manufactured products
through image analysis.
By leveraging histogram processing techniques like histogram equalization,
stretching, and matching, we can significantly improve image quality and
extract meaningful insights for various applications.

4
• The x-axis represents the range of possible intensity values (0 to 255 for
an 8-bit image).
• The y-axis represents the number of pixels that have each intensity value.
By examining the histogram, we can analyze the brightness, contrast, and
exposure of an image. Histograms are widely used in image processing for
enhancement, segmentation, and feature extraction.
• Dark images: The histogram is skewed toward the left (more pixels with
lower intensity values).
• Bright images: The histogram is skewed toward the right (more pixels with
higher intensity values).
• Low contrast images: The histogram is narrow and clustered in a small
range, indicating that the pixel values are close to each other.
• High contrast images: The histogram is spread across the full range of
intensity values, from 0 (black) to 255 (white), representing a well-
balanced distribution of tones.
This information is useful in tasks like contrast adjustment, thresholding, and
image enhancement.
Example Comparison
Histogram Equalization
The key idea behind histogram equalization is to transform the original intensity
distribution into a uniform distribution, spreading out pixel values to utilize the
entire dynamic range (0 to 255 for an 8-bit image).
Let an image have L possible intensity levels, ranging from 0 to L-1. The
transformation function used for histogram equalization is:

7
1. Compute the histogram: Count the number of pixels for each intensity
value.
2. Normalize the histogram: Divide each pixel count by the total number of
pixels to obtain the probability distribution.
3. Compute the cumulative distribution function (CDF): The CDF gives the
cumulative sum of the normalized histogram.
4. Apply the transformation function: Map the original intensity values to
new values based on the CDF.
5. Generate the new image: Replace each pixel in the original image with its
new intensity value.
0 2 0.2 0.2 51
1 3 0.3 0.5 128
2 3 0.3 0.8 204
3 2 0.2 1.0 255
After applying histogram equalization, the pixel intensities are more uniformly
distributed, improving the contrast of the image.
Summary
Medical images such as X-rays, CT scans, and MRI scans often suffer from
poor contrast, making it difficult for doctors to identify abnormalities. Histogram
processing techniques like Histogram Equalization (HE) help enhance these
images by improving visibility.
Examples:
Satellite images captured by remote sensing devices often have low contrast
due to atmospheric conditions, sensor limitations, or environmental factors.
Histogram processing techniques improve the quality of these images for better
analysis.
Examples:
Examples:
Expected Results
References
1. Books: