SlideShare a Scribd company logo
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

PPTX
Chapter 9 morphological image processing
PPTX
Morphological image processing
PPTX
Chapter 9 morphological image processing
PPSX
Color Image Processing: Basics
PPSX
Image Processing: Spatial filters
PPSX
Edge Detection and Segmentation
POTX
Presentation of Lossy compression
Chapter 9 morphological image processing
Morphological image processing
Chapter 9 morphological image processing
Color Image Processing: Basics
Image Processing: Spatial filters
Edge Detection and Segmentation
Presentation of Lossy compression

What's hot (20)

PDF
PPTX
Introduction to Image Compression
PPTX
Hit and-miss transform
PPTX
Dilation and erosion
PPTX
Chapter 1 and 2 gonzalez and woods
PPTX
Intensity Transformation
PPTX
Lecture 1 for Digital Image Processing (2nd Edition)
PPTX
Chapter 8 image compression
PPSX
Image Enhancement in Spatial Domain
PPTX
Unit3 dip
PPTX
digital image processing
PPT
ImageProcessing10-Segmentation(Thresholding) (1).ppt
PPTX
Image Filtering in the Frequency Domain
PPTX
Region based segmentation
PPTX
Halftoning in Computer Graphics
PPTX
Color Image Processing
PDF
Image segmentation
PPTX
Digital Image restoration
PDF
Digital Image Processing: Image Segmentation
PPTX
Fundamentals and image compression models
Introduction to Image Compression
Hit and-miss transform
Dilation and erosion
Chapter 1 and 2 gonzalez and woods
Intensity Transformation
Lecture 1 for Digital Image Processing (2nd Edition)
Chapter 8 image compression
Image Enhancement in Spatial Domain
Unit3 dip
digital image processing
ImageProcessing10-Segmentation(Thresholding) (1).ppt
Image Filtering in the Frequency Domain
Region based segmentation
Halftoning in Computer Graphics
Color Image Processing
Image segmentation
Digital Image restoration
Digital Image Processing: Image Segmentation
Fundamentals and image compression models
Ad

Similar to morphological image processing (20)

PPT
Chapter_9_Morphological_Image_Processing.ppt
PPT
4_14755_CS213_20172018_1__2_1_Lecture_5.ppt
PDF
Morphological.pdf
PDF
Morphological image processing motes.pdf
PPT
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
PPT
morph.ppt
PPSX
Image segmentation 3 morphology
PDF
Digital Image Processing- morphological processing ppt
PPT
Lec07-CH9-MORPHOL [Recovered].ppt
PPT
Boundary Extraction
PDF
Morphological image processing.pdf
PPT
Morphology gonzalez-woods
PPT
DIP_14_54_boundary extraction in dip .ppt
PPT
Morphological Image Processing
PPTX
finlllllllllllllllllllllllllll (1)1.pptx
PPT
EE 583-Lectursssse1sffgdhfdhgdhfdfdg0.ppt
PPT
Morphological operations on digital image processing
PPTX
Lec7_AIP.pptx6666666666666666666666666666666666666666666666
PDF
IMPLICIT SET BLENDS WITH BOUNDED PRIMITIVES FOR ZERO IMPLICIT SURFACE
PPTX
Chapter 9 morphological image processing
Chapter_9_Morphological_Image_Processing.ppt
4_14755_CS213_20172018_1__2_1_Lecture_5.ppt
Morphological.pdf
Morphological image processing motes.pdf
dokumen.tips_computer-graphics-image-processing-chapter-9-computer-graphics-i...
morph.ppt
Image segmentation 3 morphology
Digital Image Processing- morphological processing ppt
Lec07-CH9-MORPHOL [Recovered].ppt
Boundary Extraction
Morphological image processing.pdf
Morphology gonzalez-woods
DIP_14_54_boundary extraction in dip .ppt
Morphological Image Processing
finlllllllllllllllllllllllllll (1)1.pptx
EE 583-Lectursssse1sffgdhfdhgdhfdfdg0.ppt
Morphological operations on digital image processing
Lec7_AIP.pptx6666666666666666666666666666666666666666666666
IMPLICIT SET BLENDS WITH BOUNDED PRIMITIVES FOR ZERO IMPLICIT SURFACE
Chapter 9 morphological image processing
Ad

More from John Williams (20)

DOC
Employee job retention
PDF
Moore's law & more
PDF
Mobile cellular-telecommunication-system-revised
PDF
Microwave engineering jwfiles
PPT
Microcontroller 8051
PPT
Lut optimization for memory based computation
PDF
Llr test english_totalquestions
PPT
Lecture1
PDF
Lecture notes -_microwaves_jwfiles
PPT
Image processing spatialfiltering
PPT
Image processing9 segmentation(pointslinesedges)
PPT
Image trnsformations
PPT
Image processing3 imageenhancement(histogramprocessing)
PPT
Friday xpress
PPTX
PPT
Arm teaching material
PPT
An atm with an eye
PPS
4 things you_cannot_recover
PPT
Lect21 Engin112
Employee job retention
Moore's law & more
Mobile cellular-telecommunication-system-revised
Microwave engineering jwfiles
Microcontroller 8051
Lut optimization for memory based computation
Llr test english_totalquestions
Lecture1
Lecture notes -_microwaves_jwfiles
Image processing spatialfiltering
Image processing9 segmentation(pointslinesedges)
Image trnsformations
Image processing3 imageenhancement(histogramprocessing)
Friday xpress
Arm teaching material
An atm with an eye
4 things you_cannot_recover
Lect21 Engin112

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
master seminar digital applications in india
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Insiders guide to clinical Medicine.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pre independence Education in Inndia.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
TR - Agricultural Crops Production NC III.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
VCE English Exam - Section C Student Revision Booklet
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
master seminar digital applications in india
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
102 student loan defaulters named and shamed – Is someone you know on the list?
Insiders guide to clinical Medicine.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

morphological image processing

Editor's Notes

  • #2: Department of Computer Engineering, CMU