SlideShare a Scribd company logo
1 of 38
Download to read offline
Operations in Digital Image
Processing + Convolution by Example
MENOUFIA UNIVERSITY
FACULTY OF COMPUTERS AND INFORMATION
ALL DEPARTMENTS
‫المنوفية‬ ‫جامعة‬
‫والمعلومات‬ ‫الحاسبات‬ ‫كلية‬
‫جميع‬‫األقسام‬
‫المنوفية‬ ‫جامعة‬
Ahmed Fawzy Gad
ahmed.fawzy@ci.menofia.edu.eg
Image Processing Operations
Operations
Point Group
Point Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 5 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 5 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 5 215 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Arithmetic
Operations
+ - * /
Add 2
Point Operations
60 5 215 83 80
187 89 34 29 13
72 68 62 4 21
63 93 131 91 40
16 9 60 16 44
Arithmetic
Operations
+ - * /
Add 2
Group Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
Group Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
Group Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60
9
= 𝟖𝟔
Group Operations – Template Operations
1 Operation 2 Template
Mode
Median
Mean
7x7
5x5
3x3
ODD
Why odd?
Group Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60
9
= 𝟖𝟔
Put the results in the center.
Group Operations
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60
9
= 𝟖𝟔
Put the results in the center.
𝟖𝟔
Group Operations – Even Template Size
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
58 + 3 + 185 + 87
4
= 𝟖𝟑. 𝟐𝟓 ≅ 𝟖𝟒
Even template sizes has no center.
E.g. 2x3, 2x2, 5x6, …
𝟖𝟒
Group Operations – Even Template Size
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42Mode
Median
Mean
Even template sizes has no center.
E.g. 2x3, 2x2, 5x6, …
𝟖𝟒
???
58 + 3 + 185 + 87
4
= 𝟖𝟑. 𝟐𝟓 ≅ 𝟖𝟒
What is Convolution?
• It is a mathematical way to combine two signals to generate a third
signal. Convolution is not limited on digital image processing and it is
a broad term that works on signals.
Input Signal
Impulse Response
Output Signal
System
Convolution
What is Convolution?
• It is a mathematical way to combine two signals to generate a third
signal. Convolution is not limited on digital image processing and it is
a broad term that works on signals.
Input Signal
Impulse Response
Output Signal
System
Convolution
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
Convolution for 2D Image Signal
1 3 4 3 10
2 7 4 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8Template – 3x3
2 1 -4
3 2 5
-1 8 1
Convolution for 2D Image Signal
Template – 3x3
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 7 4 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
Template – 3x3
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 7 4 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
1 3 4 3 10
2 44 4 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
2 ∗ 1 + 1 ∗ 3 − 4 ∗ 4 + 3 ∗ 2 + 2 ∗ 7 + 5 ∗ 4
− 1 ∗ 6 + 8 ∗ 2 + 1 ∗ 5
= 𝟒𝟒
1 3 4 3 10
2 44 4 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
Convolution for 2D Image Signal
2 ∗ 3 + 1 ∗ 4 − 4 ∗ 3 + 3 ∗ 7 + 2 ∗ 4 + 5 ∗ 1
− 1 ∗ 2 + 8 ∗ 5 + 1 ∗ 2
= 𝟕𝟐
1 3 4 3 10
2 44 72 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
1 3 4 3 10
2 44 72 1 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 44 72 2 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 ∗ 4 + 1 ∗ 3 − 4 ∗ 10 + 3 ∗ 4 + 2 ∗ 1 + 5
∗ 11 − 1 ∗ 5 + 8 ∗ 2 + 1 ∗ 5
= 𝟐
1 3 4 3 10
2 44 72 2 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 44 72 2 11
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 ∗ 3 + 1 ∗ 10 − 4 ∗ 0 + 3 ∗ 2 + 2 ∗ 11 + 5
∗ 0 − 1 ∗ 2 + 8 ∗ 5 + 1 ∗ 0
= 𝟖𝟐
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 7 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 80 12 14 8
Convolution for 2D Image Signal
2 ∗ 13 + 1 ∗ 6 − 4 ∗ 8 + 3 ∗ 2 + 2 ∗ 7 + 5
∗ 12 − 1 ∗ 0 + 8 ∗ 0 + 1 ∗ 0
= 𝟖𝟎
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 80 12 14 8
Convolution for 2D Image Signal
2 1 -4
3 2 5
-1 8 1
1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 80 12 14 77
Convolution for 2D Image Signal
2 ∗ 9 + 1 ∗ 1 − 4 ∗ 0 + 3 ∗ 14 + 2 ∗ 8 + 5
∗ 0 − 1 ∗ 0 + 8 ∗ 0 + 1 ∗ 0
= 𝟕𝟕
Convolution for 2D Signal
•Continue. 1 3 4 3 10
2 44 72 2 82
6 2 5 2 5
13 6 8 9 1
2 80 12 14 77
Convolution for 2D Signal
•Template for Mean.𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
𝟏
𝟗
58 3 213 81 78
185 87 32 27 11
70 66 60 2 19
61 91 129 89 38
14 7 58 14 42
𝟏
𝟗
∗ 58 +
𝟏
𝟗
∗ 3 +
𝟏
𝟗
∗ 213 +
𝟏
𝟗
∗ 185 +
𝟏
𝟗
∗ 87 +
𝟏
𝟗
∗ 32
+
𝟏
𝟗
∗ 70 +
𝟏
𝟗
∗ 66 +
𝟏
𝟗
∗ 60
= 86

More Related Content

What's hot

Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingVARUN KUMAR
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleMustak Ahmmed
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Fidelity criteria in image compression
Fidelity criteria in image compressionFidelity criteria in image compression
Fidelity criteria in image compressionKadamPawan
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformationsYahya Alkhaldi
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 

What's hot (20)

Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Fidelity criteria in image compression
Fidelity criteria in image compressionFidelity criteria in image compression
Fidelity criteria in image compression
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Image compression .
Image compression .Image compression .
Image compression .
 

Similar to Operations in Digital Image Processing + Convolution by Example

Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts Dr. Mohieddin Moradi
 
Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationHeman Pathak
 
Algebra and Trigonometry 9th Edition Larson Solutions Manual
Algebra and Trigonometry 9th Edition Larson Solutions ManualAlgebra and Trigonometry 9th Edition Larson Solutions Manual
Algebra and Trigonometry 9th Edition Larson Solutions Manualkejeqadaqo
 
slide9_short.pdf
slide9_short.pdfslide9_short.pdf
slide9_short.pdfkmnv2
 
Dda line algorithm presentatiion
Dda line algorithm presentatiionDda line algorithm presentatiion
Dda line algorithm presentatiionMuhammadHamza401
 
Blur Filter - Hanpo
Blur Filter - HanpoBlur Filter - Hanpo
Blur Filter - HanpoHanpo Cheng
 
Precalculus 6th edition blitzer test bank
Precalculus 6th edition blitzer test bankPrecalculus 6th edition blitzer test bank
Precalculus 6th edition blitzer test bankSullivan001
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday lifejothiganga
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday lifeHasan Ali
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Jhonatan Minchán
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_prialeJeff Chasi
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manualMahrukh Khalid
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaLuis Perez Anampa
 
電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法Simen Li
 
Discrete cosine Transform and Digital Image compression.ppt
Discrete cosine Transform and Digital Image compression.pptDiscrete cosine Transform and Digital Image compression.ppt
Discrete cosine Transform and Digital Image compression.pptkanimozhirajasekaren
 
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...Maths in daytoday life by Gilad Lerman Department of Mathematics University o...
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...yashoverdhanv
 
Fast and accurate metrics. Is it actually possible?
Fast and accurate metrics. Is it actually possible?Fast and accurate metrics. Is it actually possible?
Fast and accurate metrics. Is it actually possible?Bogdan Storozhuk
 
Mathematical approach for Text Mining 1
Mathematical approach for Text Mining 1Mathematical approach for Text Mining 1
Mathematical approach for Text Mining 1Kyunghoon Kim
 
Proyecto parcial ii_grupo2.docx
Proyecto parcial ii_grupo2.docxProyecto parcial ii_grupo2.docx
Proyecto parcial ii_grupo2.docxLuisCuevaFlores
 

Similar to Operations in Digital Image Processing + Convolution by Example (20)

Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts
 
Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix Multiplication
 
Algebra and Trigonometry 9th Edition Larson Solutions Manual
Algebra and Trigonometry 9th Edition Larson Solutions ManualAlgebra and Trigonometry 9th Edition Larson Solutions Manual
Algebra and Trigonometry 9th Edition Larson Solutions Manual
 
slide9_short.pdf
slide9_short.pdfslide9_short.pdf
slide9_short.pdf
 
Dda line algorithm presentatiion
Dda line algorithm presentatiionDda line algorithm presentatiion
Dda line algorithm presentatiion
 
Blur Filter - Hanpo
Blur Filter - HanpoBlur Filter - Hanpo
Blur Filter - Hanpo
 
Precalculus 6th edition blitzer test bank
Precalculus 6th edition blitzer test bankPrecalculus 6th edition blitzer test bank
Precalculus 6th edition blitzer test bank
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday life
 
Mathematics in everyday life
Mathematics in everyday lifeMathematics in everyday life
Mathematics in everyday life
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_priale
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economia
 
電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法
 
Steganography Part 2
Steganography Part 2Steganography Part 2
Steganography Part 2
 
Discrete cosine Transform and Digital Image compression.ppt
Discrete cosine Transform and Digital Image compression.pptDiscrete cosine Transform and Digital Image compression.ppt
Discrete cosine Transform and Digital Image compression.ppt
 
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...Maths in daytoday life by Gilad Lerman Department of Mathematics University o...
Maths in daytoday life by Gilad Lerman Department of Mathematics University o...
 
Fast and accurate metrics. Is it actually possible?
Fast and accurate metrics. Is it actually possible?Fast and accurate metrics. Is it actually possible?
Fast and accurate metrics. Is it actually possible?
 
Mathematical approach for Text Mining 1
Mathematical approach for Text Mining 1Mathematical approach for Text Mining 1
Mathematical approach for Text Mining 1
 
Proyecto parcial ii_grupo2.docx
Proyecto parcial ii_grupo2.docxProyecto parcial ii_grupo2.docx
Proyecto parcial ii_grupo2.docx
 

More from Ahmed Gad

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmAhmed Gad
 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...Ahmed Gad
 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionAhmed Gad
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Ahmed Gad
 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesAhmed Gad
 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Ahmed Gad
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Ahmed Gad
 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with RegularizationAhmed Gad
 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleAhmed Gad
 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisAhmed Gad
 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepAhmed Gad
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientAhmed Gad
 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - RevisionAhmed Gad
 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAhmed Gad
 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsAhmed Gad
 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingAhmed Gad
 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...Ahmed Gad
 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Ahmed Gad
 
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...Ahmed Gad
 

More from Ahmed Gad (20)

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd Edition
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with Regularization
 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step Example
 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - Revision
 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNs
 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...
 
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
Introduction to MATrices LABoratory (MATLAB) as Part of Digital Signal Proces...
 

Recently uploaded

Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 

Recently uploaded (20)

Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 

Operations in Digital Image Processing + Convolution by Example

  • 1. Operations in Digital Image Processing + Convolution by Example MENOUFIA UNIVERSITY FACULTY OF COMPUTERS AND INFORMATION ALL DEPARTMENTS ‫المنوفية‬ ‫جامعة‬ ‫والمعلومات‬ ‫الحاسبات‬ ‫كلية‬ ‫جميع‬‫األقسام‬ ‫المنوفية‬ ‫جامعة‬ Ahmed Fawzy Gad ahmed.fawzy@ci.menofia.edu.eg
  • 3. Point Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 4. Point Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 5. Point Operations 60 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 6. Point Operations 60 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 7. Point Operations 60 5 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 8. Point Operations 60 5 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 9. Point Operations 60 5 215 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 Arithmetic Operations + - * / Add 2
  • 10. Point Operations 60 5 215 83 80 187 89 34 29 13 72 68 62 4 21 63 93 131 91 40 16 9 60 16 44 Arithmetic Operations + - * / Add 2
  • 11. Group Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean
  • 12. Group Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean
  • 13. Group Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean 58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60 9 = 𝟖𝟔
  • 14. Group Operations – Template Operations 1 Operation 2 Template Mode Median Mean 7x7 5x5 3x3 ODD Why odd?
  • 15. Group Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean 58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60 9 = 𝟖𝟔 Put the results in the center.
  • 16. Group Operations 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean 58 + 3 + 213 + 185 + 87 + 32 + 70 + 66 + 60 9 = 𝟖𝟔 Put the results in the center. 𝟖𝟔
  • 17. Group Operations – Even Template Size 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean 58 + 3 + 185 + 87 4 = 𝟖𝟑. 𝟐𝟓 ≅ 𝟖𝟒 Even template sizes has no center. E.g. 2x3, 2x2, 5x6, … 𝟖𝟒
  • 18. Group Operations – Even Template Size 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42Mode Median Mean Even template sizes has no center. E.g. 2x3, 2x2, 5x6, … 𝟖𝟒 ??? 58 + 3 + 185 + 87 4 = 𝟖𝟑. 𝟐𝟓 ≅ 𝟖𝟒
  • 19. What is Convolution? • It is a mathematical way to combine two signals to generate a third signal. Convolution is not limited on digital image processing and it is a broad term that works on signals. Input Signal Impulse Response Output Signal System Convolution
  • 20. What is Convolution? • It is a mathematical way to combine two signals to generate a third signal. Convolution is not limited on digital image processing and it is a broad term that works on signals. Input Signal Impulse Response Output Signal System Convolution 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42
  • 21. Convolution for 2D Image Signal 1 3 4 3 10 2 7 4 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8Template – 3x3 2 1 -4 3 2 5 -1 8 1
  • 22. Convolution for 2D Image Signal Template – 3x3 2 1 -4 3 2 5 -1 8 1 1 3 4 3 10 2 7 4 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8
  • 23. Convolution for 2D Image Signal Template – 3x3 2 1 -4 3 2 5 -1 8 1 1 3 4 3 10 2 7 4 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8
  • 24. Convolution for 2D Image Signal 1 3 4 3 10 2 44 4 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 2 ∗ 1 + 1 ∗ 3 − 4 ∗ 4 + 3 ∗ 2 + 2 ∗ 7 + 5 ∗ 4 − 1 ∗ 6 + 8 ∗ 2 + 1 ∗ 5 = 𝟒𝟒
  • 25. 1 3 4 3 10 2 44 4 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 26. Convolution for 2D Image Signal 2 ∗ 3 + 1 ∗ 4 − 4 ∗ 3 + 3 ∗ 7 + 2 ∗ 4 + 5 ∗ 1 − 1 ∗ 2 + 8 ∗ 5 + 1 ∗ 2 = 𝟕𝟐 1 3 4 3 10 2 44 72 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8
  • 27. 1 3 4 3 10 2 44 72 1 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 28. 1 3 4 3 10 2 44 72 2 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 ∗ 4 + 1 ∗ 3 − 4 ∗ 10 + 3 ∗ 4 + 2 ∗ 1 + 5 ∗ 11 − 1 ∗ 5 + 8 ∗ 2 + 1 ∗ 5 = 𝟐
  • 29. 1 3 4 3 10 2 44 72 2 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 30. 1 3 4 3 10 2 44 72 2 11 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 31. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 ∗ 3 + 1 ∗ 10 − 4 ∗ 0 + 3 ∗ 2 + 2 ∗ 11 + 5 ∗ 0 − 1 ∗ 2 + 8 ∗ 5 + 1 ∗ 0 = 𝟖𝟐
  • 32. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal
  • 33. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 7 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 34. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 80 12 14 8 Convolution for 2D Image Signal 2 ∗ 13 + 1 ∗ 6 − 4 ∗ 8 + 3 ∗ 2 + 2 ∗ 7 + 5 ∗ 12 − 1 ∗ 0 + 8 ∗ 0 + 1 ∗ 0 = 𝟖𝟎
  • 35. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 80 12 14 8 Convolution for 2D Image Signal 2 1 -4 3 2 5 -1 8 1
  • 36. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 80 12 14 77 Convolution for 2D Image Signal 2 ∗ 9 + 1 ∗ 1 − 4 ∗ 0 + 3 ∗ 14 + 2 ∗ 8 + 5 ∗ 0 − 1 ∗ 0 + 8 ∗ 0 + 1 ∗ 0 = 𝟕𝟕
  • 37. Convolution for 2D Signal •Continue. 1 3 4 3 10 2 44 72 2 82 6 2 5 2 5 13 6 8 9 1 2 80 12 14 77
  • 38. Convolution for 2D Signal •Template for Mean.𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 𝟏 𝟗 58 3 213 81 78 185 87 32 27 11 70 66 60 2 19 61 91 129 89 38 14 7 58 14 42 𝟏 𝟗 ∗ 58 + 𝟏 𝟗 ∗ 3 + 𝟏 𝟗 ∗ 213 + 𝟏 𝟗 ∗ 185 + 𝟏 𝟗 ∗ 87 + 𝟏 𝟗 ∗ 32 + 𝟏 𝟗 ∗ 70 + 𝟏 𝟗 ∗ 66 + 𝟏 𝟗 ∗ 60 = 86