chapter-1
chapter-1
Grey Levels
Image Histograms
where: I(r,c)MAX is the largest gray level value in the image I(r,c), I(r,c)MIN is the
smallest gray level value in I(r,c) and
❑MAX and MIN correspond to the maximum and minimum gray level values
possible (for an 8-bit image these are 0 and 255)
❑This equation will take an image and stretch the histogram across the entire gray
level range, which has the effect of increasing the contrast of a low contrast image
❑If most of the pixel values in an image fall within a small range, it is useful to
allow a small percentage of the pixel values to be clipped at the low and high end
of the range (for an 8-bit image this means truncating at 0 and 255)
Histogram Stretching
f(x,y) g(x,y)
Before
Contrast = 225
After
Contrast = 240
Histogram shrink
where I(r,c)MAX is the largest gray level value in the image I(r,c), I(r,c)MIN is the smallest gray
level value in I(r,c) and
❑ShrinkMAX and ShrinkMIN correspond to the maximum and minimum desired in the
compressed histogram
❑Decreases image contrast by compressing the gray levels
❑However this method may not be useful as an image enhancement tool, but it is used in an
image sharpening algorithm (unsharp masking) as a part of an enhancement technique
Histogram Shrinking
b) Histogram of image
a) Original image
+50
Histogram sliding
- 30
Brightness
Original Negative
s = (L – 1) – r