M2 PPT Dip
M2 PPT Dip
1
Course Outcomes:
At the end of the course module 2 students should be able to :
CO2:-Apply image processing techniques in both the spatial and
frequency (Fourier) domains.
2
MODULE 2
RBT Level:- L1, L2, L3
• Spatial Domain: Some Basic Intensity Transformation
Functions, Histogram Processing, Fundamentals of Spatial
Filtering, Smoothing Spatial Filters, Sharpening Spatial Filters
• Frequency Domain: Preliminary Concepts, The Discrete
Fourier Transform (DFT) of Two Variables, Properties of the
2-D DFT, Filtering in the Frequency Domain, Image
Smoothing and Image Sharpening Using Frequency Domain
Filters, Selective Filtering.
[Text: Chapter 3: Sections 3.2 to 3.6 and
Chapter 4: Sections 4.2, 4.5 to 4.10]
3
IMAGE ENHANCEMENT
4
IMAGE ENHANCEMENT
• Image enhancement techniques
→is to bring out detail that is obscured, or simply to
highlight certain features of interest in an image.
→which is subjective in the sense that is based on
human subjective preferences regarding what
constitutes a “good” enhancement result.
ex: contrast of an image
5
Image Enhancement in the
SPATIAL Domain
6
Basic Intensity Transformation function
7
Image Enhancement in SPATIAL
Domain
8
Image Enhancement in SPATIAL
Domain
9
Image Enhancement in SPATIAL
Domain
10
Image Enhancement in SPATIAL
Domain
11
PIECEWISE LINEAR
TRANSFORMATION FUNCTION
12
1) CONTRAST STRETCHING
• “Contrast stretching is the process of
Expanding intensity levels in an image.”
• contrast stretching will apply when
❖ image is low contrast
❖ Lack of dynamic range in sensor
❖Wrong setting of lens during capture of an
image
13
1) CONTRAST STRETCHING
14
1) CONTRAST STRETCHING
15
1) CONTRAST STRETCHING
16
1) CONTRAST STRETCHING
r1=r2
Then s1=0
S2=L-1
Then transformation is
Threshold function
that produces binary
values.
17
1) CONTRAST STRETCHING
18
INTENSITY LEVEL SLICING
19
BIT-PLANE SLICING
20
BIT-PLANE SLICING
21
BIT-PLANE SLICING
22
2
3
HISTOGRAM PROCESS /
HISTOGRAM MANIPULATION
HISTOGRAM PROCESS /
HISTOGRAM MANIPULATION
HISTOGRAM PROCESS
Histogram processing
2
7
INTENSITY DISTRIBUTED.??
All this filter would do is set F(0,0) to zero (force the average
value of an image to zero) and leave all frequency
components of the Fourier transform untouched.
4
6
Image Enhancement in Frequency
Domain
Lowpass filter
Highpass filter
4
7
1 if D(u, v) D0
H (u, v) =
0 if D(u, v) D0
where D(u,v) : the distance from point (u,v) to the
center of ther frequency rectangle
1
D(u, v) = (u− M / 2)2 + (v − N / 2) 2 2
5
0
1
H (u, v) =
1+ D(u, v) / D0
2n
5
5
− D 2 (u,v) / 2 D02
H (u, v) = e
56
5
7
0 if D(u, v) D0
H (u, v) =
1 if D(u, v) D0
61
Image Enhancement in Frequency Domain
62
Image Enhancement in Frequency Domain
1
H (u, v) =
1+ D0 / D(u, v)
2n
63
Image Enhancement in Frequency Domain
− D 2 (u ,v) / 2 D02
H (u, v) = 1− e
64
6
5
66
6
7
6
8
Selective Filtering
6
9
7
0
7
1
7
2
7
3
All Images taken from Gonzalez & Woods, Digital Image Processing
(2002)