Lecture 3-Image Contrast Histogram Equalization
Lecture 3-Image Contrast Histogram Equalization
Lecture 3
EEE429-Image and Video Communications / EME408-Image Processing
and Vision
Nuwan Vithanage
Image Brightness
• Brightness of a grayscale image is the average intensity of all pixels in
image
Detecting Bad Exposure using Histograms
• Exposure? Are intensity values spread (good) out or bunched up
(bad)
Image Contrast
• The contrast of a grayscale image indicates how easily objects in the
image can be distinguished
• High contrast image: many distinct intensity values
• Low contrast: image uses few intensity values
• Good Contrast? Widely spread intensity values + large difference
between min and max intensity values
Contrast Equation?
• Many different equations for contrast exist
• Examples:
• These equations work well for simple images with 2 luminances (i.e.
uniform foreground and background)
• Does not work well for complex scenes with many luminances or if
min and max intensities are small
Histograms and Dynamic Range
• Dynamic Range: Number of distinct pixels in image
• Recursive definition
• Monotonically increasing
Cumulative Histogram
Point Operations
• Point operations changes a pixel’s intensity value according to some
function (don’t care about pixel’s neighbor)
• Real‐valued functions
• Function below will clamp (force) all values to fall within range [a,b]
Example: Modify Intensity and Clamp
• Point operation: increase image contrast by 50% then clamp values
above 255
Inverting Images
• 2 steps
1. Multiple intensity by ‐1
2. Add constant (e.g. amax) to put
result in range [0, amax]
Image Negatives (Inverted Images)
• Image negatives useful for enhancing white or grey detail embedded
in dark regions of an image
• Note how much clearer the tissue is in the negative image of the
mammogram below
Thresholding
• Input values below threshold ath set to a0
• Input values above threshold ath set to a1
• Next time we will continue talk more about Point Operations &
Histogram Equalization