Video Lecturers on Digital Image Processing Gholamreza Anbarjafari
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D Digital Image Processing Spatial Domain Filtering: Part I
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D 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
Video Lecturers on Digital Image Processing Convolution Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D Convolution kernel, ω Input Image, f 1 -1 -1 2 2 2 3 1 2 -1 2 1 3 3 1 1 1 2 2 1 2 Rotate 180 o 1 3 2 2 1 1 1 -1 2 1 -1 -1 1
Video Lecturers on Digital Image Processing 1 1 1 -1 2 Convolution Gholamreza Anbarjafari, Ph. D 2 2 2 3 1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 1 1 1 2 -1 4 2 2 3 2 1 -1 -2 3 3 2 2 1 3 2 2 Input Image, f 5 Output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 1 1 2 2 2 3 -1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 1 Convolution 1 1 2 4 2 -2 2 3 2 -1 1 3 -2 3 2 2 1 3 2 2 Input Image, f 5 4 Output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 1 1 -1 2 Convolution 2 2 2 3 1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 1 1 1 2 -2 2 4 2 3 2 -1 1 -3 3 3 2 2 1 3 2 2 Input Image, f 5 4 4 Output Image, g
Video Lecturers on Digital Image Processing 1 1 1 -1 2 Gholamreza Anbarjafari, Ph. D 2 2 2 3 1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 Convolution 1 2 2 1 1 2 3 -2 6 1 2 1 3 -3 3 1 -3 2 2 1 3 2 2 Input Image, f 5 4 4 -2 Output Image, g
Video Lecturers on Digital Image Processing 1 1 1 -1 2 Gholamreza Anbarjafari, Ph. D 2 2 2 3 1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 1 Convolution 2 2 2 3 5 -1 4 2 1 3 3 9 -1 -2 2 2 1 2 2 3 Input Image, f 4 4 -2 Output Image, g
Video Lecturers on Digital Image Processing 1 1 1 -1 2 Gholamreza Anbarjafari, Ph. D 2 2 2 3 1 2 1 3 3 -1 -1 1 2 2 1 3 2 2 2 Convolution 2 2 3 5 4 -2 2 2 1 3 3 9 6 2 -2 2 1 2 3 2 Input Image, f 4 -2 Output Image, g
Video Lecturers on Digital Image Processing Convolution 5 4 9 6 14 5 11 7 4 -2 6 5 9 12 8 5 Final output Image, g Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Correlation Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D Correlation correlation kernel, ω 1 -1 -1 1 2 -1 1 Don’t rotate use it directly Input Image f 2 2 2 3 2 1 3 3 2 2 1 3 2 2
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing Correlation 1 -1 -1 2 2 2 3 1 2 -1 2 1 3 3 1 1 1 2 2 1 -1 -1 1 3 2 2 1 2 -2 2 4 2 3 1 2 1 3 3 2 2 1 3 2 2 Input Image, f 5 output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 -1 -1 Correlation 2 2 2 3 1 2 -1 2 1 3 3 1 1 2 2 1 3 2 2 1 1 -1 -1 2 2 -2 2 4 3 2 1 3 3 2 2 1 3 2 2 Input Image, f 5 10 output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 -1 -1 Correlation 2 2 2 3 1 2 -1 2 1 3 3 1 1 2 2 1 3 2 2 1 1 -1 -1 2 2 2 -3 3 4 2 1 3 3 2 2 1 3 2 2 Input Image, f 5 10 10 output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 -1 -1 Correlation 2 2 2 3 1 2 -1 2 1 3 3 1 1 2 2 1 3 2 2 1 1 -1 -1 2 2 2 3 6 -1 2 1 3 3 2 2 1 3 2 2 Input Image, f 1 5 10 10 15 output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 -1 -1 Correlation 2 2 2 3 1 2 -1 2 1 3 3 1 1 2 2 1 3 2 2 1 1 -2 2 2 3 5 10 10 15 1 4 2 -1 1 3 3 3 1 2 2 1 3 2 2 Input Image, f output Image, g
Gholamreza Anbarjafari, Ph. D Video Lecturers on Digital Image Processing 1 -1 -1 Correlation 2 2 2 3 1 2 -1 2 1 3 3 1 1 2 2 1 3 2 2 1 2 -2 2 3 5 10 10 15 2 2 1 -3 3 2 2 1 3 2 2 Input Image, f 4 output Image, g
Video Lecturers on Digital Image Processing Correlation 5 10 10 15 3 4 6 11 7 11 4 9 -5 4 Final output Image, g Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Linear Spatial Filtering Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D Smoothing Spatial Filters Types of Smoothing Filters : linear and nonlinear
Video Lecturers on Digital Image Processing Smoothing Linear Filters Box filter Weighted average filter Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Smoothing Linear Filters Original 3 x 3 5 x 5 9 x 9 15 x 15 35 x 35 © 2002 R. C. Gonzalez & R. E. Woods Gholamreza Anbarjafari, Ph. D
Video Lecturers on Digital Image Processing Gholamreza Anbarjafari, Ph. D Smoothing Linear Filters original © 2002 R. C. Gonzalez & R. E. Woods blurred thresholded
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 Gholamreza Anbarjafari, Ph. D
- Slides: 26