Professional Documents
Culture Documents
Lecture 5
2D Convolution
Let 𝐹 be the image, 𝐻 be the kernel (of size 2k+1 x 2k+1), and
𝐺 be the output image.
Linear filters: examples
0 0 0
* 0 1 0
0 0 0
=
Original Identical image
Linear filters: examples
0 0 0
* 1 0 0
0 0 0
=
Original Shifted left by 1 pixel
Convolution Filtering
• Blurring.
• Sharpening.
Blurring
1 1 1
* 1 1 1
1 1 1
=
Original Blur
original 3x3
Noise reduced
5x5 9x9
small area
blended into
background
15x15 35x35
border
effects
Blurring
– =
+α =
k1 -1 0 1
* 1 -1 0 1
1
= -1 0 1
K = k 1* k 2T 1 -1 0 1
k 2T K
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable kernel
Separable convolution kernels