Professional Documents
Culture Documents
Lect 8
Lect 8
Lect 8
Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
1
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
2
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
We note in above figure the dilation has the effect of increasing the size
of an object.
3
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
4
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
Example:
Original image A Structuring elements B
0 0 0 0 0 0
0 0 1 1 0 0 1
0 1 1 1 1 0 1
1
0 0 1 1 0 0
0 0 0 0 0 0
Compute:
a) A dilated B
b) Ac eroded by B
a) Full match B with A:1 (1,1=1),
Some match:1(1,0=1),
No match: 0 (0,0=0)
Image after dilation Added pixel original pixel
0 0 1 1 0 0 1 1 0
0 1 1 1 1 0
0 1 1 1 1 0
0 1 1 1 1 0
0 0 1 1 0 0
5
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
b) Ac Eroded B
Full match B with A:1; (1,1=1),
some match:0; (1,0=0),
no match: 0; (0,0)=0
Original image (A) Structuring elements (B)
0 0 0 0 0 0
0 0 1 1 0 0 1
0 1 1 1 1 0 1
1
0 0 1 1 0 0
0 0 0 0 0 0
Ac
1 1 1 1 1 1
1 1 0 0 1 1 1
1
1 0 0 0 0 1
1
1 1 0 0 1 1
1 1 1 1 1 1
6
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
0 0 0 0 0 0 0 1 0
1 0 0 0 0 1
1 0 0 0 0 1
1 0 0 0 0 1
0 0 0 0 0 0
●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮
●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮
●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮 ●󠄮
H.V V.V N4 ND N8
3- Opening:
Is representing by (A o B)
Opening= Erosion + Dilation
A o B= (A Ɵ B) B
A B is a subset of A
A B B A B
4-Closing:
Is representing by A B
Closing = Dilation + Erosion
A B A B Ɵ B
A is a subset of A B
A B B A B
5- Hit-or-Miss Transform: Is actually aimed to detected an objected of
a specific shape and size in a given image.
8
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
Applications:
9
Dr.Azmi T.Al-Rawi
University of Anbar\ College Of Computer Science& I.T
Graduate studying (Master)
Lec.8
References:
[1] (PDF) Role of Mathematical Morphology in Digital Image Processing:
A Review. Available from:
https://www.researchgate.net/publication/303760248_Role_of_Mathema
tical_Morphology_in_Digital_Image_Processing_A_Review [accessed
Apr 30 2020].
[2] Maria Magnusson, Computer Vision Lab., Dept. of Electrical
Engineering, Linköping University.
10