Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Image Enhancement
(Point Processing)
Original Negative
s = 1.0 - r
Image Image
6
of
Point Processing Example:
42 Negative Images (cont…)
Original Image Enhanced Image x
x
s = intensitymax - r
7
of
Point Processing Example:
42 Thresholding
Thresholding transformations are
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
transformations
Three of the most
common are shown
here
– Linear
• Negative/Identity
– Logarithmic
• Log/Inverse log
– Power law
• nth power/nth root
11
of
42
Logarithmic Transformations
The general form of the log transformation is
s = c * log(1 + r)
The log transformation maps a narrow range
of low input grey level values into a wider
range of output values
The inverse log transformation performs the
opposite transformation
12
of
42
Logarithmic Transformations (cont…)
s = log(1 + r)
13
of
42
Logarithmic Transformations (cont…)
s = log(1 + r)
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
14
of
42
Power Law Transformations
Power law transformations have the following
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
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
15
of
42
Power Law Transformations (cont…)
Original Image Enhanced Image x
x
s=rγ
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
16
of
42
Power Law Example
17
of
42
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
O ld In te n sitie s
18
of
42
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
19
of
42
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
20
of
42
Power Law Example (cont…)
The images to the
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
right show a
s = r 0.6
magnetic resonance
(MR) image of a
fractured human s=
r
s = r 0.4
spine
0.3
Different curves
highlight different
detail
21
of
42
Power Law Example
22
of
42
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
23
of
42
Power Law Transformations (cont…)
An aerial photo
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of a runway is
shown s = r 3.0
This time
power law
transforms are s=
s = r 4.0
r 5.0
used to darken
the image
Different curves
highlight
different detail
24
of
42
Gamma Correction
Many of you might be familiar with gamma
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
25
More Contrast Issues
26
of
Piecewise Linear Transformation
42 Functions
Rather than using a well defined mathematical
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
– Similar to thresholding
– Other levels can be
suppressed or maintained
– Useful for highlighting features
in an image
28
of
42
Bit Plane Slicing
Often by isolating particular bits of the pixel
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
[10000000] [01000000]
[00100000] [00001000]
[00000100] [00000001]
30
of
42
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
[10000000] [01000000]
[00100000] [00001000]
[00000100] [00000001]
31
of
42
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
32
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
33
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
34
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
35
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
36
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
37
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
38
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
39
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
42
40
Bit Plane Slicing (cont…)
41
of
42
Bit Plane Slicing (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
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
42
of
42
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