6553 2022 Section 1
6553 2022 Section 1
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
RADARSAT IMAGE
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Image Processing Basics
• Other Concepts:
– Wavelet Theory
– Compression
– Color processing
• Image types:
– Sound
– Radar (microwave)
– Infrared
– Visible: intensity, multispectral, hyperspectral
– UV
– X-Ray
– Gamma Ray
Chapter 1: Introduction
Image Acquisition
• 3 Basic Configurations
– Single sensor
– Line sensor
– Array sensor
• Digital image
Pixel intensity
é a0,0 a0,1 a0, N -1 ù
ê a ú
ê 1, 0 ú M x N Digital image
f ( x, y ) = ê ú
ê ú
ê ú
êaM -1, 0 aM -1, N -1 úû
ë
Chapter 2: Digital Image Fundamentals
Image Formation
k
L=2
Number of bits
b = kMN
€
Image Formation
∝ Δx,Δy
€
∝ L(= 2 k )
Chapter 2: Digital Image Fundamentals
Chapter 2: Digital Image Fundamentals
Chapter 2: Digital Image Fundamentals
Chapter 2: Digital Image Fundamentals
Pixel Operations
• Zooming
– Pixel Replication
– Bilinear Interpolation
• Shrinking
– Row/column deletion
– Bilinear interpolation
∞ ∞
f s ( x, y) = f ( x, y) ∑ ∑ δ ( x − mΔx, y − nΔy)
m=−∞ n=−∞
€
2-D Sampling Theorem
¥ ¥
Fs (u, v ) = u s vs å å F (u, v ) Ä d (u - ku , v - lv )
s s
k = -¥ l = -¥
Convolution operation
1 1
us = vs =
Δx Δy
2-D Sampling Theorem
Simplifying:
¥ ¥
Fs (u, v ) = u s vs å å F (u - ku , v - lv ) s s
k = -¥ l = -¥
• The original spectrum around the origin can be recovered using a low pass filter
if and only if
u s ≥ 2u max v s ≥ 2v max
– Image Enhancement
– Image Compression
– Image Segmentation
• Arithmetic Operations:
– Image subtraction
– Image Averaging
• Logical Operations:
– AND
– NOT
– OR
Image Operations on Pixel Basis
E.g. Division
é a0 , 0 a0,1 ù
éa0, 0 a0,1 ù éb0, 0 b0,1 ù ê b0, 0 b0,1 úú
êa ú ÷ê ú =ê
ë 1, 0 a1,1 û ë b1, 0 b1,1 û ê a1, 0 a1,1 ú
êb b1,1 úû
ë 1,0
[c] = [a]./[b]
Image Enhancement in the Spatial Domain
g (x, y ) = T [ f (x, y )]
s = T [r ]
• T operator:
L = 2k
– Image negative
s = L −1− r
– Log transformation
s = c log(1+ r )
€
– Power Law Transformation
€ s = cr γ
€
Chapter 3
Image Enhancement in the
Spatial Domain
Image Enhancement in the Spatial Domain
r
In discrete nj
implementation s = T (r) = ( L −1) ∑
j=0 n
r = 0,1, 2,..., L −1
Logical Operations
Image Enhancement in the Spatial Domain
• Arithmetic Operations:
– Image subtraction
g( x, y) = f1 ( x, y) − f 2 ( x, y)
– Image Averaging
€ g( x, y) = f ( x, y) + n( x, y)
a b
R( x, y) = ∑ ∑ w(i, j) f ( x + i, y + j)
i=− a j=−b
• Averaging filter:
é1 1 1ù
é1 2 1 ù
[w] = 1 êê1 1 1úú [w] = 1 êê2 4 2úú
9 16
êë1 1 1úû êë1 2 1úû
Weighted
Unweighted
a b
So å å w(i, j ) = 1
i =- a j =-b
Chapter 3
Image Enhancement in the
Spatial Domain
Chapter 3
Image Enhancement in the
Spatial Domain
Basics of Spatial Filtering
∂f ∂2 f
= f ( x −1) − f ( x ) = f ( x +1) + f ( x −1) − 2 f ( x )
∂x ∂x 2
€ €
1. First order derivatives generally produce thicker edge responses.
2. Second order derivatives have stronger response to fine detail.
3. First order derivatives have stronger response to step changes.
4. Second order derivatives produce double edge response to step
changes.
2 2
2 ∂ f ∂ f
∇ f= 2+ 2
∂x ∂y
• In discrete form
+¥
F (u ) = ò f (x )e - j 2pux dx 1-D Fourier Transform
-¥
+¥
f (x ) = ò F (u )e + j 2pux
du Inverse 1-D Fourier Transform
-¥
+¥ +¥
F (u, v ) = òò f (x, y )e - j 2p (ux + vy )dxdy
- ¥- ¥
+¥ +¥
f ( x, y ) = ò ò F (u , v )e + j 2p (ux + vy )
dudv
- ¥- ¥
F (u, v) Û f (x, y )
Image Enhancement in the Frequency Domain
$
ux vy '
1 M −1 N −1 − j 2π & + )
%M N (
F (u, v) = ∑ ∑ f ( x, y)e
MN x=0 y=0
Spatial coordinates
€ Spatial Frequencies 0 ≤ x ≤ M −1
0 ≤ y ≤ N −1
0 ≤ u ≤ M −1
0 ≤ v ≤ N −1
€
€ €
Image Enhancement in the Frequency Domain
Real component
Imaginary component
•
€f(x,y) is generally real i.e. intensity
• Other comments:
$ I (u,v) '
−1
∠F (u,v) = tan & )
j∠F ( u,v )
% R(u,v) (
F (u,v) = F (u,v) e
F (u,v) = R 2 (u,v) + I 2 (u,v)
Image Enhancement in the Frequency Domain
• Power spectrum
2
F (u,v) = R 2 (u,v) + I 2 (u,v)
= F (u,v) F * (u,v)
Complex conjugate
€
€
F * (u,v) = R(u,v) − jI (u,v)
• Other notables:
1 1
Δu = Δv =
€ MΔx NΔy
FFT Shifted centered around M/2
M/2
0 M-1
0 M/2 M-1
RECT function and power spectrum
Chapter 4
Image Enhancement in the
Frequency Domain
Chapter 4
Image Enhancement in the
Frequency Domain
Discrete Fourier Domain
Processing
FFTSHIFT
Image Enhancement in the Frequency Domain
g( x, y) = FT −1 {G(u,v)}
Image Enhancement in the Frequency Domain
• Linear System:
Convolution g( x, y) = f ( x, y) ⊗ h( x, y)
Operation
€
Filter impulse response h( x, y) ⇔ H (u,v) Filter transfer function
€
Image Enhancement in the Frequency Domain
δ ( x, y) ⊗ h( x, y) ⇔ H (u,v)
€
Convolution and Padding
Zero Padding for convolution
Image Enhancement in the Frequency Domain
1 M −1 N −1
f ( x, y) ⊗ h( x, y) = ∑ ∑ f ( m,n)h( x − m, y − n)
MN m=0 n=0
Image Enhancement in the Frequency Domain
#1 D(u,v) ≤ D0
H ILPF (u,v) = $
%0 D(u,v) > D0
Cut-off frequency
1
H BLPF (u,v) = 2n
" D(u,v)%
1+ $ '
# D0 &
• Unlike the ILPF, the BLPF does not have distinct “brickwall”
transition from low frequencies to high frequencies.
€
• Less ringing artifacts.
D 2 ( u ,v )
−
H GLPF (u,v) = e 2σ 2
D 2 ( u ,v )
€ −
2D0
2
€ H GLPF (u,v) = e
if σ = D0
• Similar smoothing performance as Butterworth LPF (n=2) but no
ringing artifacts due to its Gaussian shape.
€