Image Processing 4-ImageEnhancement (PointProcessing)
Image Processing 4-ImageEnhancement (PointProcessing)
Image Enhancement
(Point Processing)
Course Website: http://www.comp.dit.ie/bmacnamee
2
of
42
Contents
In this lecture we will look at image
enhancement point processing techniques:
What is point processing?
Negative images
Thresholding
Logarithmic transformation
Power law transforms
Grey level slicing
Bit plane slicing
3
of
42
4
of
42
Point Processing
The simplest spatial domain operations
occur when the neighbourhood is simply the
pixel itself
In this case T is referred to as a grey level
transformation function or a point processing
operation
Point processing operations take the form
s=T(r)
where s refers to the processed image pixel
value and r refers to the original image pixel
value
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
5
of
42
Original
Image
s = 1.0 - r
Negative
Image
6
of
42
Original Image
Enhanced Image
Image f (x, y)
s = intensitymax - r
Image f (x, y)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
7
of
42
s=
8
of
42
Original Image
Image f (x, y)
s=
Enhanced Image
1.0
0.0
Image f (x, y)
r > threshold
r <= threshold
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
9
of
42
Intensity Transformations
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
10
of
42
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
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
12
of
42
s = log(1 + r)
13
of
42
Enhanced Image
Image f (x, y)
Image f (x, y)
s = log(1 + r)
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
14
of
42
15
of
42
Enhanced Image
Image f (x, y)
Image f (x, y)
s=r
We usually set c to 1
Grey levels must be in the range [0.0, 1.0]
16
of
42
17
of
42
18
of
42
19
of
42
s = r 0.6
s = r 0.4
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
20
of
42
s=
0 .3
21
of
42
22
of
42
s = r 3.0
s = r 4.0
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
23
of
42
s=
5 .0
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
24
of
42
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
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
25
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
26
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
27
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
28
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
29
of
42
[01000000]
[00100000]
[00001000]
[00000100]
[00000001]
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
30
of
42
[01000000]
[00100000]
[00001000]
[00000100]
[00000001]
31
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
32
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
33
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
34
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
35
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
36
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
37
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
38
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
39
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
40
of
42
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
41
of
42
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