SlideShare a Scribd company logo
1 of 58
Chapter 9: Morphological
Image Processing
Digital Image Processing
2
Mathematic Morphology
 used to extract image components that are
useful in the representation and description of
region shape, such as
 boundaries extraction
 skeletons
 convex hull
 morphological filtering
 thinning
 pruning
3
Mathematic Morphology
mathematical framework used for:
 pre-processing
 noise filtering, shape simplification, ...
 enhancing object structure
 skeletonization, convex hull...
 Segmentation
 watershed,…
 quantitative description
 area, perimeter, ...
4
Z2
and Z3
 set in mathematic morphology represent
objects in an image
 binary image (0 = white, 1 = black) : the
element of the set is the coordinates (x,y)
of pixel belong to the object  Z2
 gray-scaled image : the element of the set
is the coordinates (x,y) of pixel belong to the
object and the gray levels  Z3
5
Basic Set Theory
6
Reflection and Translation
},|{ˆ Bfor bbwwB ∈−∈=
},|{)( Afor azaccA z ∈+∈=
7
Logic Operations
8
Example
Structuring element (SE)
9
 small set to probe the image under study
 for each SE, define origo
 shape and size must be adapted to geometric
properties for the objects
Basic idea
 in parallel for each pixel in binary image:
 check if SE is ”satisfied”
 output pixel is set to 0 or 1 depending on
used operation
10
How to describe SE
 many different ways!
 information needed:
 position of origo for SE
 positions of elements belonging to SE
11
Basic morphological operations
 Erosion
 Dilation
 combine to
 Opening object
 Closening background
12
keep general shape but
smooth with respect to
Erosion
 Does the structuring element fit the
set?
erosion of a set A by structuring element
B: all z in A such that B is in A when
origin of B=z
shrink the object
13
}{ Az|(B)BA z ⊆=−
Erosion
14
Erosion
15
16
Erosion
}{ Az|(B)BA z ⊆=−
Dilation
 Does the structuring element hit the
set?
 dilation of a set A by structuring
element B: all z in A such that B hits A
when origin of B=z
 grow the object
17
}ˆ{ ΦA)Bz|(BA z ≠∩=⊕
Dilation
18
Dilation
19
20
Dilation
}ˆ{ ΦA)Bz|(BA z ≠∩=⊕
B = structuring element
21
Dilation : Bridging gaps
useful
 erosion
 removal of structures of certain shape and
size, given by SE
 Dilation
 filling of holes of certain shape and size,
given by SE
22
Combining erosion and
dilation
 WANTED:
 remove structures / fill holes
 without affecting remaining parts
 SOLUTION:
 combine erosion and dilation
 (using same SE)
23
24
Erosion : eliminating irrelevant
detail
structuring element B = 13x13 pixels of gray level 1
Opening
erosion followed by dilation, denoted ∘
 eliminates protrusions
 breaks necks
 smoothes contour
25
BBABA ⊕−= )(
Opening
26
Opening
27
28
Opening
BBABA ⊕−= )(
})(|){( ABBBA zz ⊆∪=
Closing
dilation followed by erosion, denoted •
 smooth contour
 fuse narrow breaks and long thin gulfs
 eliminate small holes
 fill gaps in the contour
29
BBABA −⊕=• )(
Closing
30
Closing
31
32
Closing
BBABA −⊕=• )(
33
Properties
Opening
(i) A°B is a subset (subimage) of A
(ii) If C is a subset of D, then C °B is a subset of D °B
(iii) (A °B) °B = A °B
Closing
(i) A is a subset (subimage) of A•B
(ii) If C is a subset of D, then C •B is a subset of D •B
(iii) (A •B) •B = A •B
Note: repeated openings/closings has no effect!
Duality
 Opening and closing are dual with respect
to complementation and reflection
34
)ˆ()( BABA cc
=•
35
36
Useful: open & close
37
Application: filtering
38
Hit-or-Miss Transformation
(HMT)⊛
 find location of one shape among a set of shapes
”template matching
 composite SE: object part (B1) and background
part (B2)
 does B1 fits the object while, simultaneously,
B2 misses the object, i.e., fits the background?
39
40
Hit-or-Miss Transformation
)]([)( XWAXABA c
−−∩−=∗
41
Boundary Extraction
)()( BAAA −−=β
42
Example
43
Region Filling
,...3,2,1)( 1 =∩⊕= − kABXX c
kk
44
Example
45
Extraction of connected
components
46
Example
Convex hull
 A set A is is
said to be
convex if
the straight
line segment
joining any
two points
in A lies
entirely
within A.
i
i
DAC
4
1
)(
=
∪=
,...3,2,1and4,3,2,1)( ==∪∗= kiABXX ii
k
i
k
47
48
49
Thinning
c
BAA
BAABA
)(
)(
∗∩=
∗−=⊗
50
Thickening
)( BAABA ∗∪=•
51
Skeletons
K
k
k ASAS
0
)()(
=
∪=
BkBAkBAASk )()()( −−−=
})(|max{ Φ≠−= kBAkK
))((
0
kBASA k
K
k
⊕∪=
=
52
53
Pruning
}{1 BAX ⊗=
AHXX ∩⊕= )( 23
314 XXX ∪=
H = 3x3 structuring element of 1’s
)( 1
8
1
2
k
k
BXX ∗∪=
=
54
55
56
57
58
5 basic structuring elements

More Related Content

What's hot

Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosion
Aswin Pv
 

What's hot (20)

Dilation and erosion
Dilation and erosionDilation and erosion
Dilation and erosion
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniques
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Dip Image Segmentation
Dip Image SegmentationDip Image Segmentation
Dip Image Segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
COM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingCOM2304: Morphological Image Processing
COM2304: Morphological Image Processing
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Morphological Image Processing
Morphological Image ProcessingMorphological Image Processing
Morphological Image Processing
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Image compression .
Image compression .Image compression .
Image compression .
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 

Similar to morphological image processing

Morphological.pdf
Morphological.pdfMorphological.pdf
Morphological.pdf
pawankamal3
 
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
YogeshNeelappa2
 
Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphology
Rumah Belajar
 
Lec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].pptLec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].ppt
AyeleNugusie
 
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
teresehearn
 
5- pictorial sketching Graphic and geometric graphics engineering.
5- pictorial sketching Graphic and geometric graphics engineering.5- pictorial sketching Graphic and geometric graphics engineering.
5- pictorial sketching Graphic and geometric graphics engineering.
Abo Talak Al-wayli
 

Similar to morphological image processing (20)

Morphological.pdf
Morphological.pdfMorphological.pdf
Morphological.pdf
 
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
 
morph.ppt
morph.pptmorph.ppt
morph.ppt
 
Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphology
 
Lec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].pptLec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].ppt
 
Morphological image processing.pdf
Morphological image processing.pdfMorphological image processing.pdf
Morphological image processing.pdf
 
Morphology gonzalez-woods
Morphology gonzalez-woodsMorphology gonzalez-woods
Morphology gonzalez-woods
 
DIP_14_54_boundary extraction in dip .ppt
DIP_14_54_boundary extraction in dip .pptDIP_14_54_boundary extraction in dip .ppt
DIP_14_54_boundary extraction in dip .ppt
 
Chapter 9 newer
Chapter 9   newerChapter 9   newer
Chapter 9 newer
 
Ch01-2.ppt
Ch01-2.pptCh01-2.ppt
Ch01-2.ppt
 
3.complex numbers Further Mathematics Zimbabwe Zimsec Cambridge
3.complex numbers  Further Mathematics Zimbabwe Zimsec Cambridge3.complex numbers  Further Mathematics Zimbabwe Zimsec Cambridge
3.complex numbers Further Mathematics Zimbabwe Zimsec Cambridge
 
Sets (1).ppt
Sets (1).pptSets (1).ppt
Sets (1).ppt
 
Complexos 1
Complexos 1Complexos 1
Complexos 1
 
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
1 of 11UMGC College Algebra MATH 107 6980 - Fall 2020 – Instruct.docx
 
Point Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D ReconstructionPoint Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D Reconstruction
 
Matrix Algebra
Matrix Algebra Matrix Algebra
Matrix Algebra
 
Funções 2
Funções 2Funções 2
Funções 2
 
Fin500J_MatrixAlgebra_2011.ppt
Fin500J_MatrixAlgebra_2011.pptFin500J_MatrixAlgebra_2011.ppt
Fin500J_MatrixAlgebra_2011.ppt
 
5- pictorial sketching Graphic and geometric graphics engineering.
5- pictorial sketching Graphic and geometric graphics engineering.5- pictorial sketching Graphic and geometric graphics engineering.
5- pictorial sketching Graphic and geometric graphics engineering.
 
Taking your side effects aside
Taking your side effects asideTaking your side effects aside
Taking your side effects aside
 

More from John Williams

Mobile cellular-telecommunication-system-revised
Mobile cellular-telecommunication-system-revisedMobile cellular-telecommunication-system-revised
Mobile cellular-telecommunication-system-revised
John Williams
 
Microwave engineering jwfiles
Microwave engineering jwfilesMicrowave engineering jwfiles
Microwave engineering jwfiles
John Williams
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
John Williams
 
Lut optimization for memory based computation
Lut optimization for memory based computationLut optimization for memory based computation
Lut optimization for memory based computation
John Williams
 
Llr test english_totalquestions
Llr test english_totalquestionsLlr test english_totalquestions
Llr test english_totalquestions
John Williams
 
Lecture notes -_microwaves_jwfiles
Lecture notes -_microwaves_jwfilesLecture notes -_microwaves_jwfiles
Lecture notes -_microwaves_jwfiles
John Williams
 
Image processing spatialfiltering
Image processing spatialfilteringImage processing spatialfiltering
Image processing spatialfiltering
John Williams
 
Image processing9 segmentation(pointslinesedges)
Image processing9 segmentation(pointslinesedges)Image processing9 segmentation(pointslinesedges)
Image processing9 segmentation(pointslinesedges)
John Williams
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
John Williams
 
Image processing3 imageenhancement(histogramprocessing)
Image processing3 imageenhancement(histogramprocessing)Image processing3 imageenhancement(histogramprocessing)
Image processing3 imageenhancement(histogramprocessing)
John Williams
 
Arm teaching material
Arm teaching materialArm teaching material
Arm teaching material
John Williams
 
4 things you_cannot_recover
4 things you_cannot_recover4 things you_cannot_recover
4 things you_cannot_recover
John Williams
 

More from John Williams (20)

Employee job retention
Employee job retentionEmployee job retention
Employee job retention
 
Moore's law & more
Moore's law & moreMoore's law & more
Moore's law & more
 
Mobile cellular-telecommunication-system-revised
Mobile cellular-telecommunication-system-revisedMobile cellular-telecommunication-system-revised
Mobile cellular-telecommunication-system-revised
 
Mnr
MnrMnr
Mnr
 
Microwave engineering jwfiles
Microwave engineering jwfilesMicrowave engineering jwfiles
Microwave engineering jwfiles
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Lut optimization for memory based computation
Lut optimization for memory based computationLut optimization for memory based computation
Lut optimization for memory based computation
 
Llr test english_totalquestions
Llr test english_totalquestionsLlr test english_totalquestions
Llr test english_totalquestions
 
Lecture1
Lecture1Lecture1
Lecture1
 
Lecture notes -_microwaves_jwfiles
Lecture notes -_microwaves_jwfilesLecture notes -_microwaves_jwfiles
Lecture notes -_microwaves_jwfiles
 
Image processing spatialfiltering
Image processing spatialfilteringImage processing spatialfiltering
Image processing spatialfiltering
 
Image processing9 segmentation(pointslinesedges)
Image processing9 segmentation(pointslinesedges)Image processing9 segmentation(pointslinesedges)
Image processing9 segmentation(pointslinesedges)
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Image processing3 imageenhancement(histogramprocessing)
Image processing3 imageenhancement(histogramprocessing)Image processing3 imageenhancement(histogramprocessing)
Image processing3 imageenhancement(histogramprocessing)
 
Friday xpress
Friday xpressFriday xpress
Friday xpress
 
Fft
FftFft
Fft
 
Arm teaching material
Arm teaching materialArm teaching material
Arm teaching material
 
An atm with an eye
An atm with an eyeAn atm with an eye
An atm with an eye
 
4 things you_cannot_recover
4 things you_cannot_recover4 things you_cannot_recover
4 things you_cannot_recover
 
Lect21 Engin112
Lect21 Engin112Lect21 Engin112
Lect21 Engin112
 

Recently uploaded

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

morphological image processing

Editor's Notes

  1. Department of Computer Engineering, CMU