Download presentation
Presentation is loading. Please wait.
Published byVivien Smith Modified over 9 years ago
1
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Domain Filtering: Part I
2
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Spatial Filtering w(-1,-1)w(-1,0)w(-1,1) w(0,-1)w(0,0)w(0,1) w(1,-1)w(1,0)w(1,1) Mask coefficients showing coordinate arrangement
3
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Convolution
4
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Convolution 1 12 111 2223 2133 2212 1322 Rotate 180 o 1 12 111 Convolution kernel, ω Input Image, f
5
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Convolution Input Image, f 3 2 1 2 2 1 3 2 32 21 22 325 3 2 1 2 2 1 3 2 32 21 22 32 1-2 24 111 1 12 111 Output Image, g
6
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3245 3 2 1 2 2 1 3 2 32 21 22 32 3-2 24 111 1 12 111 Input Image, f Output Image, g Convolution
7
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 32445 3 2 1 2 2 1 3 2 32 21 22 32 3-3 34-2 111 1 12 111 Input Image, f Output Image, g Convolution
8
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3244-25 3 2 1 2 2 1 3 2 32 21 22 32 1-3 16-2 111 1 12 111 Input Image, f Output Image, g Convolution
9
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3244 9 -25 3 2 1 2 2 1 3 2 32 21 22 32 2 14 221 1 12 111 Input Image, f Output Image, g Convolution
10
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 32 6 44 9 -25 3 2 1 2 2 1 3 2 32 21 22 32 1 32 222 1 12 111 Input Image, f Output Image, g Convolution
11
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 12 7 6 4 8 6 14 4 59 59 511 -25 Final output Image, g Convolution
12
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Correlation
13
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 1 12 111 2223 2133 2212 1322 Don’t rotate use it directly correlation kernel, ω Input Image f Correlation
14
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 325 3 2 1 2 2 1 3 2 32 21 22 32 121 -241 1 111 21 1 Input Image, f output Image, g Correlation
15
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 32105 3 2 1 2 2 1 3 2 32 21 22 32 312 -242 1 111 21 1 Input Image, f output Image, g Correlation
16
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3210 5 3 2 1 2 2 1 3 2 32 21 22 32 331 -342 1 111 21 1 Input Image, f output Image, g Correlation
17
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3210 155 3 2 1 2 2 1 3 2 32 21 22 32 133 62 1 111 21 1 Input Image, f output Image, g Correlation
18
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 3210 3 155 3 2 1 2 2 1 3 2 32 21 22 32 221 41 -2 1 111 21 1 Input Image, f output Image, g Correlation
19
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 3 2 1 2 2 1 3 2 32 21 22 32 4 10 3 155 3 2 1 2 2 1 3 2 32 21 22 32 122 -322 -2 2 111 21 1 Input Image, f output Image, g Correlation
20
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing 4 11 4 10 4 4 6 113 5-5 97 155 Final output Image, g Correlation
21
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Linear Spatial Filtering
22
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Smoothing Spatial Filters Types of Smoothing Filters : linear and nonlinear Smoothing Linear Filters : known as averaging filter or lowpass filters.
23
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Smoothing Linear Filters Box filter Weighted average filter
24
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Smoothing Linear Filters © 2002 R. C. Gonzalez & R. E. Woods Original3x3 5x5 9x9 15x1535x35
25
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Smoothing Linear Filters © 2002 R. C. Gonzalez & R. E. Woods original blurred thresholded
26
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Summary We have looked at: –What are spatial domain operations. –What are convolution and correlation. –What is smoothing linear filter Next time we will continue our talk about image enhancement in spatial domain by focusing on statistical terminology
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.