SlideShare a Scribd company logo
1 of 47
Morphological Image Processing
Subject: FIP (181102)
Prof. Asodariya Bhavesh
ECD,SSASIT, Surat
Digital Image Processing, 3rd edition by
Gonzalez and Woods
Preview
• The word Morphology commonly denotes a branch
of biology that deals with the form and structure
of animals and plants
• We use mathematical morphological as a tool for
extracting image components that are useful in the
representation and description of region shape,
such as boundaries extraction, skeletons, convex
hull, morphological filtering, thinning, pruning
• Binary images whose components are elements of
Z2 while in gray scale image elements belongs to Z3
Preliminaries
• Reflections
• Translations
µ
µ
The reflection of a set , denoted , is defined as
{ | ,for }
B B
B w w b b B   
1 2The translation of a set by point ( , ), denoted ( ) ,
is defined as
( ) { | ,for }
Z
Z
B z z z B
B c c b z b B

   
Preliminaries
Operators by examples:
Preliminaries
Examples of Reflection and Translation
Structuring Elements
• Small sets or sub-images used to probe an image
under study for properties of interest is called SE
origin
How Structuring Elements are used
• The Background border is made large enough to
accommodate the entire structuring element when its
origin is on the border of the original set (Padding)
• SE is of size 3×3 with the origin in the center, so as a one-
element border that encompasses the entire set is
sufficient
Erosion and Dilation
• Erosion:
• With A and B as sets in Z2 , the erosion of A by B is
defined as
• Erosion of A by B is the set of all points z such that B,
translated by z, is contained in A.
• B has to be contained in A is equivalent to B not sharing
any common elements with the background
 | ( )ZA B z B A 
 | ( ) c
ZA B z B A   
Erosion and Dilation
Erosion and Dilation
Erosion and Dilation
• Erosion shrinks or thins objects in a binary image
• Erosion as a morphological filtering operation in which
image details smaller than the structuring elements are
filtered from the image
• Erosion performed the function of a “line filter”
Erosion and Dilation
• Dilation:
• With A and B as sets in Z2 , the dilation of A by B is
defined as
• Reflecting B about its origin, and shifting this reflection
by z
• The dilation of A by B then is the set of all
displacements, z, such that B^ and A overlap by at least
one element
µ
  A B= |
z
z B A   
µ
  |
z
A B z B A A      
Erosion and Dilation
Erosion and Dilation
• Dilation:
• Unlike erosion, dilation “grows” or “thickens” objects in
a binary image
• The specific manner and extent of this thickening is
controlled by the shape of the structuring element used
Erosion and Dilation
Duality
• Erosion and dilation are duals of each other with respect to
set complementation and reflection
• That is,
• First equation indicates that erosion of A by B is the
complement of the dilation of by B^, and vice versa
• Duality property is useful particularly when the structuring
element is symmetric with respect to its origin so that B^=B
• Then, we can obtain the erosion of an image by B simply by
dilating its background (i.e., dilating ) with the same
  µ
  µ
c c
c c
A B A B
and
A B A B
  
  
c
A
c
A
Duality
• Structuring element and complementing the result.
• Starting with the definition of erosion
  µ
  
µ
  
µ
|
|
c
c
Z
c
Z
c
A B z B A
z B A
A B
    
   
 
Opening and Closing
• Opening smoothes the contour of an object, breaks narrow
isthmuses, and eliminates thin protrusions
• Closing also tends to smooth sections of contours but, as
opposed to opening, it generally fuses narrow breaks and
long thin gulfs, eliminates small holes, and fills gaps in the
contour
• Opening:
• Opening of set A by SE B is defined
• Thus, opening A by B is the erosion of A by B, followed by a
dilation of the result by B
 A B A B B  o
Opening and Closing
• Closing:
• Closing of set A by SE B is defined
• Closing of set A by B is simply the dilation of A by B,
followed by the erosion of the result by B
 A B A B B  g
Examples: Opening
 A B A B B  g
Examples: Closing
 A B A B B  g
Examples: Closing
Opening and Closing
• Opening and closing are duals of each other with respect to
set complementation and reflections
• Opening Properties:
• A o B is a subset of A
• If C is a subset of D, then C o B is a subset of D o B
• (A o B) o B = A o B
  µ( )
c c
A B A Bg o
  µ( )
c c
A B A Bo g
Opening and Closing
• Closing properties:
• A is a subset of
• If C is a subset of D, then is a subset of
•
A Bg
C Bg D Bg
( )A B B A Bg g g
Opening and Closing
Hit-or-Miss Transformation
• The hit-or-miss transform is a general binary morphological
operation that can be used to look for particular patterns of
foreground and background pixels in an image.
• The hit-and-miss transform is a basic tool for shape
detection.
• Concept: To detect a shape:
Hit object
Miss background
Hit-or-Miss Transformation
• The structural elements used for Hit-or-miss transforms are
an extension to the ones used with dilation, erosion etc.
• The structural elements can contain both foreground and
background pixels, rather than just foreground pixels, i.e.
both ones and zeros.
• The structuring element is superimposed over each pixel in
the input image, and if an exact match is found between the
foreground and background pixels in the structuring element
and the image, the input pixel lying below the origin of the
structuring element is set to the foreground pixel value. If it
does not match, the input pixel is replaced by the boundary
pixel value.
Hit-or-Miss Transformation
• The hit-or-miss transform is defined as:
Let B ={B1, B2}, where B1 is the set formed from elements
of B associated with an object and B2 is the set of elements of
B associated with the corresponding background, where B1
and B2 are disjoint.
B1: Object related
B2: Background related
Some Basic Algorithms
• Boundary Extraction
• Hole Filling
• Extraction of Connected Components
• Thinning and Thickening
• Skeletons
• Convex Hull
• Prunning
Hole Filling
• A hole may be defined as a background region surrounded
by a connected border of foreground pixels
• Let A denote a set whose elements are 8-connected
boundaries, each boundary enclosing a background region
(i.e., a hole). Given a point in each hole, the objective is to fill
all the holes with 1s
1. Forming an array X0 of 0s (the same size as the array
containing A), except the locations in X0 corresponding to the
given point in each hole, which we set to 1.
2. Xk = (Xk-1 + B) Ac k=1,2,3,…
Stop the iteration if Xk = Xk-1

Extraction of Connected
Components
• Extraction of connected components from a binary image is
central to many automated image analysis applications
• Here we introduce connectivity and connected
components
• Let A be a set containing one or more connected
components , and form an array X0 (of the same size as the
array containing A) whose elements are 0s (background
values), except at each location known to correspond to a
point in each connected component in A, which we set to 1
(foreground value)
Extraction of Connected
Components
• SE used is based on 8-connectivity between pixels
1
-1
( )
:structuring element
until
k k
k k
X X B A
B
X X
  

Thinning
• Thinning
The thinning of a set A by a structuring element B, defined
( * )
( * )c
A B A A B
A A B
  
 
Thinning
• A more useful expression for thinning A symmetrically is
based on a sequence of structuring elements:
   1 2 3
-1
, , ,...,
where is a rotated version of
n
i i
B B B B B
B B

1 2
The thinning of by a sequence of structuring element { }
{ } ((...(( ) )...) )n
A B
A B A B B B    
Skeletons
• Skeletons
A skeleton, ( ) of a set has the following properties
a. if is a point of ( ) and ( ) is the largest disk
centered at and contained in , one cannot find a
larger disk containing ( )
z
z
S A A
z S A D
z A
D and included in .
The disk ( ) is called a maximum disk.
b. The disk ( ) touches the boundary of at two or
more different places.
z
z
A
D
D A
Skeletons
Skeletons
0
The skeleton of A can be expressed in terms of
erosion and openings.
( ) ( )
with max{ | };
( ) ( ) ( )
where is a structuring element, and
K
k
k
k
S A S A
K k A kB
S A A kB A kB B
B


 
  
    o
( ) ((..(( ) ) ...) )
successive erosions of A.
A kB A B B B
k
     
Skeletons
0
A can be reconstructed from the subsets by using
( ( ) )
where ( ) denotes successive dilations of A.
( ( ) ) ((...(( ( ) ) )... )
K
k
k
k
k k
A S A kB
S A kB k
S A kB S A B B B

  

    

More Related Content

What's hot

Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation modelAnupriyaDurai
 
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
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Region filling
Region fillingRegion filling
Region fillinghetvi naik
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
Noise filtering
Noise filteringNoise filtering
Noise filteringAlaa Ahmed
 
Morphological Image Processing
Morphological Image ProcessingMorphological Image Processing
Morphological Image Processingkumari36
 

What's hot (20)

Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
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 Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Region filling
Region fillingRegion filling
Region filling
 
Module 31
Module 31Module 31
Module 31
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
Shape Features
 Shape Features  Shape Features
Shape Features
 
Morphological Image Processing
Morphological Image ProcessingMorphological Image Processing
Morphological Image Processing
 

Similar to Chapter 9 morphological image processing

Morphological.pdf
Morphological.pdfMorphological.pdf
Morphological.pdfpawankamal3
 
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
 
morphological image processing
morphological image processingmorphological image processing
morphological image processingJohn Williams
 
Morphology gonzalez-woods
Morphology gonzalez-woodsMorphology gonzalez-woods
Morphology gonzalez-woodsSonam Maurya
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processingRaghu Kumar
 
Lec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].pptLec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].pptAyeleNugusie
 
morphological image processing
morphological image processingmorphological image processing
morphological image processingAnubhav Kumar
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary ExtractionMaria Akther
 
Morphological Operations (2).pptx
Morphological Operations (2).pptxMorphological Operations (2).pptx
Morphological Operations (2).pptxRiyaLuThra7
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
3d-object-representation.pdf
3d-object-representation.pdf3d-object-representation.pdf
3d-object-representation.pdfKeerthanaP37
 
12776032.ppt
12776032.ppt12776032.ppt
12776032.pptfgjf3
 
Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniquesShab Bi
 
Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphologyRumah Belajar
 
rural marketing ppt
rural marketing pptrural marketing ppt
rural marketing pptelaya1984
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection ielaya1984
 

Similar to Chapter 9 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...
 
morphological image processing
morphological image processingmorphological image processing
morphological image processing
 
Morphology gonzalez-woods
Morphology gonzalez-woodsMorphology gonzalez-woods
Morphology gonzalez-woods
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Lec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].pptLec07-CH9-MORPHOL [Recovered].ppt
Lec07-CH9-MORPHOL [Recovered].ppt
 
morphological image processing
morphological image processingmorphological image processing
morphological image processing
 
Chapter 9 newer
Chapter 9   newerChapter 9   newer
Chapter 9 newer
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary Extraction
 
Morphological Operations (2).pptx
Morphological Operations (2).pptxMorphological Operations (2).pptx
Morphological Operations (2).pptx
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
3d-object-representation.pdf
3d-object-representation.pdf3d-object-representation.pdf
3d-object-representation.pdf
 
12776032.ppt
12776032.ppt12776032.ppt
12776032.ppt
 
Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniques
 
testpang
testpangtestpang
testpang
 
CV_Chap 3 Features Detection
CV_Chap 3 Features DetectionCV_Chap 3 Features Detection
CV_Chap 3 Features Detection
 
Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphology
 
morph.ppt
morph.pptmorph.ppt
morph.ppt
 
rural marketing ppt
rural marketing pptrural marketing ppt
rural marketing ppt
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection i
 

More from asodariyabhavesh

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptasodariyabhavesh
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
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 woodsasodariyabhavesh
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberasodariyabhavesh
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communicationasodariyabhavesh
 

More from asodariyabhavesh (7)

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).ppt
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
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
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
 

Recently uploaded

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 

Recently uploaded (20)

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 

Chapter 9 morphological image processing

  • 1. Morphological Image Processing Subject: FIP (181102) Prof. Asodariya Bhavesh ECD,SSASIT, Surat
  • 2. Digital Image Processing, 3rd edition by Gonzalez and Woods
  • 3. Preview • The word Morphology commonly denotes a branch of biology that deals with the form and structure of animals and plants • We use mathematical morphological as a tool for extracting image components that are useful in the representation and description of region shape, such as boundaries extraction, skeletons, convex hull, morphological filtering, thinning, pruning • Binary images whose components are elements of Z2 while in gray scale image elements belongs to Z3
  • 4. Preliminaries • Reflections • Translations µ µ The reflection of a set , denoted , is defined as { | ,for } B B B w w b b B    1 2The translation of a set by point ( , ), denoted ( ) , is defined as ( ) { | ,for } Z Z B z z z B B c c b z b B     
  • 7. Examples of Reflection and Translation
  • 8. Structuring Elements • Small sets or sub-images used to probe an image under study for properties of interest is called SE origin
  • 9. How Structuring Elements are used • The Background border is made large enough to accommodate the entire structuring element when its origin is on the border of the original set (Padding) • SE is of size 3×3 with the origin in the center, so as a one- element border that encompasses the entire set is sufficient
  • 10. Erosion and Dilation • Erosion: • With A and B as sets in Z2 , the erosion of A by B is defined as • Erosion of A by B is the set of all points z such that B, translated by z, is contained in A. • B has to be contained in A is equivalent to B not sharing any common elements with the background  | ( )ZA B z B A   | ( ) c ZA B z B A   
  • 13. Erosion and Dilation • Erosion shrinks or thins objects in a binary image • Erosion as a morphological filtering operation in which image details smaller than the structuring elements are filtered from the image • Erosion performed the function of a “line filter”
  • 14. Erosion and Dilation • Dilation: • With A and B as sets in Z2 , the dilation of A by B is defined as • Reflecting B about its origin, and shifting this reflection by z • The dilation of A by B then is the set of all displacements, z, such that B^ and A overlap by at least one element µ   A B= | z z B A    µ   | z A B z B A A      
  • 16. Erosion and Dilation • Dilation: • Unlike erosion, dilation “grows” or “thickens” objects in a binary image • The specific manner and extent of this thickening is controlled by the shape of the structuring element used
  • 18. Duality • Erosion and dilation are duals of each other with respect to set complementation and reflection • That is, • First equation indicates that erosion of A by B is the complement of the dilation of by B^, and vice versa • Duality property is useful particularly when the structuring element is symmetric with respect to its origin so that B^=B • Then, we can obtain the erosion of an image by B simply by dilating its background (i.e., dilating ) with the same   µ   µ c c c c A B A B and A B A B       c A c A
  • 19. Duality • Structuring element and complementing the result. • Starting with the definition of erosion   µ    µ    µ | | c c Z c Z c A B z B A z B A A B           
  • 20. Opening and Closing • Opening smoothes the contour of an object, breaks narrow isthmuses, and eliminates thin protrusions • Closing also tends to smooth sections of contours but, as opposed to opening, it generally fuses narrow breaks and long thin gulfs, eliminates small holes, and fills gaps in the contour • Opening: • Opening of set A by SE B is defined • Thus, opening A by B is the erosion of A by B, followed by a dilation of the result by B  A B A B B  o
  • 21. Opening and Closing • Closing: • Closing of set A by SE B is defined • Closing of set A by B is simply the dilation of A by B, followed by the erosion of the result by B  A B A B B  g
  • 22. Examples: Opening  A B A B B  g
  • 23. Examples: Closing  A B A B B  g
  • 25. Opening and Closing • Opening and closing are duals of each other with respect to set complementation and reflections • Opening Properties: • A o B is a subset of A • If C is a subset of D, then C o B is a subset of D o B • (A o B) o B = A o B   µ( ) c c A B A Bg o   µ( ) c c A B A Bo g
  • 26. Opening and Closing • Closing properties: • A is a subset of • If C is a subset of D, then is a subset of • A Bg C Bg D Bg ( )A B B A Bg g g
  • 28. Hit-or-Miss Transformation • The hit-or-miss transform is a general binary morphological operation that can be used to look for particular patterns of foreground and background pixels in an image. • The hit-and-miss transform is a basic tool for shape detection. • Concept: To detect a shape: Hit object Miss background
  • 29.
  • 30. Hit-or-Miss Transformation • The structural elements used for Hit-or-miss transforms are an extension to the ones used with dilation, erosion etc. • The structural elements can contain both foreground and background pixels, rather than just foreground pixels, i.e. both ones and zeros. • The structuring element is superimposed over each pixel in the input image, and if an exact match is found between the foreground and background pixels in the structuring element and the image, the input pixel lying below the origin of the structuring element is set to the foreground pixel value. If it does not match, the input pixel is replaced by the boundary pixel value.
  • 31. Hit-or-Miss Transformation • The hit-or-miss transform is defined as: Let B ={B1, B2}, where B1 is the set formed from elements of B associated with an object and B2 is the set of elements of B associated with the corresponding background, where B1 and B2 are disjoint. B1: Object related B2: Background related
  • 32. Some Basic Algorithms • Boundary Extraction • Hole Filling • Extraction of Connected Components • Thinning and Thickening • Skeletons • Convex Hull • Prunning
  • 33. Hole Filling • A hole may be defined as a background region surrounded by a connected border of foreground pixels • Let A denote a set whose elements are 8-connected boundaries, each boundary enclosing a background region (i.e., a hole). Given a point in each hole, the objective is to fill all the holes with 1s 1. Forming an array X0 of 0s (the same size as the array containing A), except the locations in X0 corresponding to the given point in each hole, which we set to 1. 2. Xk = (Xk-1 + B) Ac k=1,2,3,… Stop the iteration if Xk = Xk-1 
  • 34.
  • 35.
  • 36. Extraction of Connected Components • Extraction of connected components from a binary image is central to many automated image analysis applications • Here we introduce connectivity and connected components • Let A be a set containing one or more connected components , and form an array X0 (of the same size as the array containing A) whose elements are 0s (background values), except at each location known to correspond to a point in each connected component in A, which we set to 1 (foreground value)
  • 37. Extraction of Connected Components • SE used is based on 8-connectivity between pixels 1 -1 ( ) :structuring element until k k k k X X B A B X X    
  • 38.
  • 39.
  • 40. Thinning • Thinning The thinning of a set A by a structuring element B, defined ( * ) ( * )c A B A A B A A B     
  • 41. Thinning • A more useful expression for thinning A symmetrically is based on a sequence of structuring elements:    1 2 3 -1 , , ,..., where is a rotated version of n i i B B B B B B B  1 2 The thinning of by a sequence of structuring element { } { } ((...(( ) )...) )n A B A B A B B B    
  • 42.
  • 43. Skeletons • Skeletons A skeleton, ( ) of a set has the following properties a. if is a point of ( ) and ( ) is the largest disk centered at and contained in , one cannot find a larger disk containing ( ) z z S A A z S A D z A D and included in . The disk ( ) is called a maximum disk. b. The disk ( ) touches the boundary of at two or more different places. z z A D D A
  • 45. Skeletons 0 The skeleton of A can be expressed in terms of erosion and openings. ( ) ( ) with max{ | }; ( ) ( ) ( ) where is a structuring element, and K k k k S A S A K k A kB S A A kB A kB B B            o ( ) ((..(( ) ) ...) ) successive erosions of A. A kB A B B B k      
  • 46.
  • 47. Skeletons 0 A can be reconstructed from the subsets by using ( ( ) ) where ( ) denotes successive dilations of A. ( ( ) ) ((...(( ( ) ) )... ) K k k k k k A S A kB S A kB k S A kB S A B B B          