Lecture 4S
Lecture 4S
Processing
Image Enhancement
Point Processing
Instructor Name
Dr. Abida Sharif
Material Reference
5
Point Processing Example: Negative Images
Negative images are useful for enhancing white or grey
detail embedded in dark regions of an image
Note how much clearer the tisue is in the negative image
6
Point Processing Example: Negative Images (cont.…)
s = intensitymax - r
7
Point Processing Example:
Thresholding
Thresholding transformations are particularly useful
for segmentation in which we want to isolate an object
of interest from a background
8
Point Processing Example: Thresholding (cont.…)
11
Logarithmic Transformations (cont.…)
Log functions are particularly useful when the input grey
level values may have an extremely large range of values
In the following example the Fourier transform of an
image is put through a log transform to reveal more detail
s = log(1 + r)
12
Logarithmic Transformations (cont.…)
Original Image Enhanced Image x
x
110 120 92
91 94 98
90 91 99
s = c*log(1 + r)
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
13
Power Law Transformations
Power law transformations have the following form
s=c*rγ
Map a narrow range
of dark input values
into a wider range of
output values or vice
versa
Varying γ gives a whole
family of curves
14
Power Law Transformations (cont.…)
Original Image x Enhanced Image x
y Image f (x, y)
y Image f (x, y)
s = c.r γ
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
15
Power Law Example
16
Power Law Example (cont.…)
γ = 0.6
1
0.9
0.8
Transformed Intensities
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
Old Intensities
17
Power Law Example (cont.…)
γ = 0.4
1
0.9
Transformed Intensities
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
Original Intensities
18
Power Law Example (cont.…)
γ = 0.3
1
0.9
Transformed Intensities
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
Original Intensities
19
Power Law Example (cont.…)
s = r 0.4
r 0 .3
Different curves
highlight different
detail
20
Power Law Example
21
Power Law Example (cont.…)
γ = 5.0
1
0.9
Transformed Intensities
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
Original Intensities
22
Power Law Transformations (cont.…)
An aerial photo
of a runway is
shown
This time s = r 3.0
power law
transforms are
used to darken s=
s = r 4.0
r
the image 5 .0
Different curves
highlight
different detail
23
Gamma Correction
Many of you might be familiar with gamma correction
of computer monitors
Problem is that
display devices do
not respond linearly
to different
intensities
Can be corrected
using a log
transform
24
More Contrast Issues
25
Piecewise Linear Transformation Functions
Rather than using a well defined mathematical function
we can use arbitrary user-defined transforms
The images below show a contrast stretching linear
transform to add contrast to a poor quality image
26
Gary Level Slicing
Highlights a specific range of grey levels
Similar to thresholding
Other levels can be
suppressed or maintained
Useful for highlighting features
in an image
27
Bit Plane Slicing
Often by isolating particular bits of the pixel values in an
image we can highlight interesting aspects of that image
Higher-order bits usually contain most of the significant
visual information
Lower-order bits contain
subtle details
28
Bit Plane Slicing (cont.…)
[10000000] [01000000]
[00100000] [00001000]
[00000100] [00000001]
29
Bit Plane Slicing (cont.…)
30
Bit Plane Slicing (cont.…)
31
Bit Plane Slicing (cont.…)
32
Bit Plane Slicing (cont.…)
33
Bit Plane Slicing (cont.…)
34
Bit Plane Slicing (cont.…)
35
Bit Plane Slicing (cont.…)
36
Bit Plane Slicing (cont.…)
37
Bit Plane Slicing (cont.…)
38
Bit Plane Slicing (cont.…)
39
Bit Plane Slicing (cont.…)
Reconstructed image
using only bit planes 8
and 7
Reconstructed image
using only bit planes 8, 7
and 6
Reconstructed image
using only bit planes 7, 6
and 5
40
Summary
We have looked at different kinds of point processing
image enhancement
Next time we will start to look at neighbourhood
operations – in particular filtering and convolution
41
Next Lecture
Neighbourhood operations
What is spatial filtering?
Smoothing operations
What happens at the edges?
Correlation and convolution
42
THANK YOU
43