Professional Documents
Culture Documents
Vid Lecture05fin
Vid Lecture05fin
Digital Image
Processing
Contrast Enhancement: Part I
Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Contrast Enhancement
L=2k
k: number of bits used to
represent each pixel
Image Negatives
s= (L-1)-r
s is the pixel value of the output image and r is the pixel value of
the input image.
Logarithmic Transformations
s= c log(1+r)
s is the pixel value of the output image and r is the pixel value of
the input image.
Logarithmic Transformations
s= c rγ
s is the pixel value of the output image and r is the pixel value of
the input image. (γ ≥ 0 and 0 ≤ r ≤ 1)
Logarithmic Transformations
a b
c d
(a) original image. (b) γ = 0.5 .
(c) γ = 0.3 . (d) γ = 0.7.
Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Piecewise-Linear Transformations
Piecewise-Linear Transformations
grey-level slicing Pixel values
between
[A,B] are
highlighted
Other pixel
values are
preserved
Piecewise-Linear Transformations
Bit Plane slicing
Piecewise-Linear Transformations
Bit Plane slicing
MSB
LSB
Histogram Processing
14 Dark image
12
10
12
Bright image
10
0.5
8
High contrast image
7
Summary
We have looked at:
What is contrast stretching?
What are different transformations?
What is histogram and histogram processing?