SlideShare a Scribd company logo
1 of 35
Course Syllabus
1. Color
2. Camera models, camera calibration
3. Advanced image pre-processing
• Line detection
• Corner detection
• Maximally stable extremal regions
4. Mathematical Morphology
• binary
• gray-scale
• skeletonization
• granulometry
• morphological segmentation
• Scale in image processing
5. Wavelet theory in image processing
6. Image Compression
7. Texture
8. Image Registration
• rigid
• non-rigid
• RANSAC
References
• Books:
• Chapter 11, Image Processing, Analysis, and Machine
Vision, Sonka et al
• Chapter 9, Digital Image Processing, Gonzalez &
Woods
Topics
1. Basic Morphological concepts
2. Binary Morphological operations
• Dilation & erosion
• Hit-or-miss transformation
• Opening & closing
3. Gray scale morphological operations
4. Some basic morphological operations
• Boundary extraction
• Region filling
• Extraction of connected component
• Convex hull
5. Skeletonization
6. Granularity
7. Morphological segmentation and watersheds
Introduction
1. Morphological operators often take a binary image and a
structuring element as input and combine them using a set
operator (intersection, union, inclusion, complement).
2. The structuring element is shifted over the image and at each
pixel of the image its elements are compared with the set of
the underlying pixels.
3. If the two sets of elements match the condition defined by the
set operator (e.g. if set of pixels in the structuring element is a
subset of the underlying image pixels), the pixel underneath
the origin of the structuring element is set to a pre-defined
value (0 or 1 for binary images).
4. A morphological operator is therefore defined by its
structuring element and the applied set operator.
5. Image pre-processing (noise filtering, shape simplification)
6. Enhancing object structures (skeletonization, thinning, convex
hull, object marking)
7. Segmentation of the object from background
8. Quantitative descriptors of objects (area, perimeter, projection,
Euler-Poincaré characteristics)
binary
image
structuring
element
Example: Morphological Operation
• Let ‘⊕’ denote a morphological operator
𝑋 ⊕ 𝐵 = {𝑝 ∈ 𝑍2|𝑝 = 𝑥 + 𝑏, 𝑥 ∈ 𝑋, 𝑏 ∈ 𝐵
 
Dilation
• Morphological dilation ‘⊕’ combines two sets using vector of set elements
𝑋 ⊕ 𝐵 = {𝑝 ∈ 𝑍2
|𝑝 = 𝑥 + 𝑏, 𝑥 ∈ 𝑋, 𝑏 ∈ 𝐵
Commutative: 𝑋 ⊕ 𝐵 = 𝐵 ⊕ 𝑋
Associative: 𝑋 ⊕ 𝐵 ⊕ 𝐷 = 𝑋 ⊕ 𝐵 ⊕ 𝐷
Invariant of translation: 𝑋ℎ ⊕ 𝐵 = 𝑋 ⊕ 𝐵 ℎ
If 𝑋 ⊆ 𝑌 then 𝑋 ⊕ 𝐵 ⊆ 𝑌 ⊕ 𝐵
 
Erosion
1. Morphological erosion ‘⊖’ combines two sets using vector subtraction of set elements
and is a dual operator of dilation
𝑋 ⊖ 𝐵 = {𝑝 ∈ 𝑍2
|∀𝑏 ∈ 𝐵, 𝑝 + 𝑏 ∈ 𝑋
Not Commutative: 𝑋 ⊖ 𝐵 ≠ 𝐵 ⊖ 𝑋
Not associative: 𝑋 ⊖ 𝐵 ⊖ 𝐷 = 𝑋 ⊖ 𝐵 ⊖ 𝐷
Invariant of translation: 𝑋ℎ ⊖ 𝐵 = 𝑋 ⊖ 𝐵 ℎ and 𝑋 ⊖ 𝐵ℎ = 𝑋 ⊖ 𝐵 −ℎ
If 𝑋 ⊆ 𝑌 then 𝑋 ⊖ 𝐵 ⊆ 𝑌 ⊖ 𝐵

!
Duality: Dilation and Erosion
• Transpose Ă of a structuring element A is defined as follows
𝐴 = {−𝑎|𝑎 ∈ 𝐴
• Duality between morphological dilation and erosion operators
𝑋 ⊖ 𝐵 𝑐
= 𝑋𝑐
⊕ 𝐵
! 
 
Hit-Or-Miss transformation
• Hit-or-miss is a morphological operators for finding local patterns of pixels. Unlike
dilation and erosion, this operation is defined using a composite structuring element 𝐵 =
𝐵1, 𝐵2 . The hit-or-miss operator is defined as follows
𝑋 ⊗ 𝐵 = {𝑥|𝐵1 ⊂ 𝑋 and 𝐵2 ⊂ 𝑋𝒄
 
Hit-Or-Miss transformation: another example
Relation with erosion:
𝑋 ⊗ 𝐵 = 𝑋 ⊖ 𝐵1 ∩ 𝑋𝑐
⊖ 𝐵2






Hit-Or-Miss transformation: yet another example
Opening
• Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads
to an interesting morphological operation called opening
𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵
!

Opening
• Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads
to an interesting morphological operation called opening
𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵



Opening
• Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads
to an interesting morphological operation called opening
𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵

Opening
• Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads
to an interesting morphological operation called opening
𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵
Closing
• A dilation followed by an erosion leads to the interesting morphological operation called
closing
𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵
 
! 
Closing
• A dilation followed by an erosion leads to the interesting morphological operation called
closing
𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵
 
Closing
• A dilation followed by an erosion leads to the interesting morphological operation called
closing
𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵
Morphological Boundary Extraction
• The boundary of an object A denoted by δ(A) can be obtained by first eroding the object
and then subtracting the eroded image from the original image.
𝛿 𝐴 = 𝐴 − 𝐴 ⊖ 𝐵
! 
Quiz
• How to extract edges along a given orientation using morphological operations?
• An opening followed by a closing
• Or, a closing followed by an opening
𝑋 ∘ 𝐵) • 𝐵
𝑋 • 𝐵) ∘ 𝐵
Gray Scale Morphological Operation
1 2
( , )
y f x x

1
x
2
x
Support F
top surface
T[A]
Set A
Gray Scale Morphological Operation
• A: a subset of n-dimensional Euclidean space, A  Rn
• F: support of A
• Top hat or surface
• A top surface is essentially a gray scale image f : F  R
• An umbra U(f) of a gray scale image f : F  R is the whole
subspace below the top surface representing the gray scale
image f. Thus,
1
{ | s.t. ( , ) }
n
F x R y R x y A

    
( ): n
T A F R

( )( ) max{ | ( , ) }
T A x y x y A
 
( ) {( , ) , ( )}
U f x y F R y f x
   
Gray Scale Morphological Operation
1 2
( , )
y f x x

1
x
2
x
top surface
T[A]
Gray Scale Morphological Operation
• The gray scale dilation between two functions may be defined as the
top surface of the dilation of their umbras
• More computation-friendly definitions
• Commonly, we consider the structure element k as a binary set. Then
the definitions of gray-scale morphological operations simplifies to
( ( ) ( ))
f k T U f U k
  
max{ ( ) ( )}
z k
f k f x z k z

   
min{ ( ) ( )}
z k
f k f x z k z

   
max{ ( )}
z k
f k f x z

  
min{ ( )}
z k
f k f x z

  
Morphological Boundary Extraction
• The boundary of an object A denoted by δ(A) can be obtained by first
eroding the object and then subtracting the eroded image from the
original image.
( )
A A A B
   
 
Quiz
• How to extract edges along a given orientation using morphological
operations?
Morphological noise filtering
• An opening followed by a closing
• Or, a closing followed by an opening
( )
X B B

( )
X B B

Morphological noise filtering
MATLAB DEMO
Morphological Region Filling
• Task: Given a binary image X and a (seed) point p, fill the region
surrounded by the pixels of X and contains p.
• A: An image where only the boundary pixels are labeled 1 and others
are labeled 0
• Ac: The Complement of A
• We start with an image X0 where only the seed point p is 1 and others
are 0. Then we repeat the following steps until it converges
1
( ) 1,2,3,...
c
k k
X X B A k

   
Morphological Region Filling
 
A Ac
Morphological Region Filling
• The boundary of an object A denoted by δ(A) can be obtained by first
eroding the object and then subtracting the eroded image from the
original image.
( )
A A A B
   
 
A
Morphological Region Filling
1
( ) ( ) 1,2,3,...
c
k k
X X B A k


   
Morphological Region Filling
Homotopic Transformation
• Homotopic tree
r1 r2
h1
h2
Quitz: Homotopic Transformation
• What is the relation between an element in the ith and i+1th levels?

More Related Content

What's hot

Calculas IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION ppt
Calculas IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION pptCalculas IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION ppt
Calculas IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION pptDrazzer_Dhruv
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesOmprakash Chauhan
 
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...IJMER
 
Spline interpolation numerical methods presentation
Spline interpolation numerical methods presentationSpline interpolation numerical methods presentation
Spline interpolation numerical methods presentationShohanur Nishad
 
Histogram based Enhancement
Histogram based Enhancement Histogram based Enhancement
Histogram based Enhancement Vivek V
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization11mr11mahesh
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integralsharshid panchal
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
Integration application (Aplikasi Integral)
Integration application (Aplikasi Integral)Integration application (Aplikasi Integral)
Integration application (Aplikasi Integral)Muhammad Luthfan
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfacesAnkur Kumar
 
Basics of Integration and Derivatives
Basics of Integration and DerivativesBasics of Integration and Derivatives
Basics of Integration and DerivativesFaisal Waqar
 
Calculus Application of Integration
Calculus Application of IntegrationCalculus Application of Integration
Calculus Application of Integrationsagar maniya
 
Application of definite integrals
Application of definite integralsApplication of definite integrals
Application of definite integralsVaibhav Tandel
 
morphological tecnquies in image processing
morphological tecnquies in image processingmorphological tecnquies in image processing
morphological tecnquies in image processingsoma saikiran
 
Application of integral calculus
Application of integral calculusApplication of integral calculus
Application of integral calculusHabibur Rahman
 

What's hot (20)

Calculas IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION ppt
Calculas IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION pptCalculas IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION ppt
Calculas IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION ppt
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - Notes
 
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
 
Spline interpolation numerical methods presentation
Spline interpolation numerical methods presentationSpline interpolation numerical methods presentation
Spline interpolation numerical methods presentation
 
Histogram based Enhancement
Histogram based Enhancement Histogram based Enhancement
Histogram based Enhancement
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integrals
 
Klt
KltKlt
Klt
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
point processing
point processingpoint processing
point processing
 
Integration application (Aplikasi Integral)
Integration application (Aplikasi Integral)Integration application (Aplikasi Integral)
Integration application (Aplikasi Integral)
 
Hidden lines & surfaces
Hidden lines & surfacesHidden lines & surfaces
Hidden lines & surfaces
 
Basics of Integration and Derivatives
Basics of Integration and DerivativesBasics of Integration and Derivatives
Basics of Integration and Derivatives
 
Calculus Application of Integration
Calculus Application of IntegrationCalculus Application of Integration
Calculus Application of Integration
 
Application of definite integrals
Application of definite integralsApplication of definite integrals
Application of definite integrals
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
morphological tecnquies in image processing
morphological tecnquies in image processingmorphological tecnquies in image processing
morphological tecnquies in image processing
 
Dwp08 0106
Dwp08 0106Dwp08 0106
Dwp08 0106
 
Application of integral calculus
Application of integral calculusApplication of integral calculus
Application of integral calculus
 

Similar to Image morphology

AP Advantage: AP Calculus
AP Advantage: AP CalculusAP Advantage: AP Calculus
AP Advantage: AP CalculusShashank Patil
 
Function transformations
Function transformationsFunction transformations
Function transformationsTerry Gastauer
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptxNaveenKumar5162
 
07 cie552 image_mosaicing
07 cie552 image_mosaicing07 cie552 image_mosaicing
07 cie552 image_mosaicingElsayed Hemayed
 
TIU CET Review Math Session 6 - part 2 of 2
TIU CET Review Math Session 6 - part 2 of 2TIU CET Review Math Session 6 - part 2 of 2
TIU CET Review Math Session 6 - part 2 of 2youngeinstein
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMath Homework Solver
 
Rate of change and tangent lines
Rate of change and tangent linesRate of change and tangent lines
Rate of change and tangent linesMrs. Ibtsam Youssef
 
7.3 volumes by cylindrical shells
7.3 volumes by cylindrical shells7.3 volumes by cylindrical shells
7.3 volumes by cylindrical shellsdicosmo178
 
7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washersdicosmo178
 
7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washersdicosmo178
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfJifarRaya
 
Futher pure mathematics 3 hyperbolic functions
Futher pure mathematics 3 hyperbolic functionsFuther pure mathematics 3 hyperbolic functions
Futher pure mathematics 3 hyperbolic functionsDennis Almeida
 
My pp tno sound
My pp tno soundMy pp tno sound
My pp tno sounddicosmo178
 
All You Need is Fold
All You Need is FoldAll You Need is Fold
All You Need is FoldMike Harris
 

Similar to Image morphology (20)

AP Advantage: AP Calculus
AP Advantage: AP CalculusAP Advantage: AP Calculus
AP Advantage: AP Calculus
 
Function transformations
Function transformationsFunction transformations
Function transformations
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
07 cie552 image_mosaicing
07 cie552 image_mosaicing07 cie552 image_mosaicing
07 cie552 image_mosaicing
 
TIU CET Review Math Session 6 - part 2 of 2
TIU CET Review Math Session 6 - part 2 of 2TIU CET Review Math Session 6 - part 2 of 2
TIU CET Review Math Session 6 - part 2 of 2
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Lecture co4 math21-1
Lecture co4 math21-1Lecture co4 math21-1
Lecture co4 math21-1
 
Rate of change and tangent lines
Rate of change and tangent linesRate of change and tangent lines
Rate of change and tangent lines
 
Parabola complete
Parabola completeParabola complete
Parabola complete
 
Topology.ppt
Topology.pptTopology.ppt
Topology.ppt
 
Topology.ppt
Topology.pptTopology.ppt
Topology.ppt
 
Topology.ppt
Topology.pptTopology.ppt
Topology.ppt
 
7.3 volumes by cylindrical shells
7.3 volumes by cylindrical shells7.3 volumes by cylindrical shells
7.3 volumes by cylindrical shells
 
7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers
 
7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers7.2 volumes by slicing disks and washers
7.2 volumes by slicing disks and washers
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
 
Futher pure mathematics 3 hyperbolic functions
Futher pure mathematics 3 hyperbolic functionsFuther pure mathematics 3 hyperbolic functions
Futher pure mathematics 3 hyperbolic functions
 
My pp tno sound
My pp tno soundMy pp tno sound
My pp tno sound
 
All You Need is Fold
All You Need is FoldAll You Need is Fold
All You Need is Fold
 

Recently uploaded

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 

Recently uploaded (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 

Image morphology

  • 1. Course Syllabus 1. Color 2. Camera models, camera calibration 3. Advanced image pre-processing • Line detection • Corner detection • Maximally stable extremal regions 4. Mathematical Morphology • binary • gray-scale • skeletonization • granulometry • morphological segmentation • Scale in image processing 5. Wavelet theory in image processing 6. Image Compression 7. Texture 8. Image Registration • rigid • non-rigid • RANSAC
  • 2. References • Books: • Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al • Chapter 9, Digital Image Processing, Gonzalez & Woods
  • 3. Topics 1. Basic Morphological concepts 2. Binary Morphological operations • Dilation & erosion • Hit-or-miss transformation • Opening & closing 3. Gray scale morphological operations 4. Some basic morphological operations • Boundary extraction • Region filling • Extraction of connected component • Convex hull 5. Skeletonization 6. Granularity 7. Morphological segmentation and watersheds
  • 4. Introduction 1. Morphological operators often take a binary image and a structuring element as input and combine them using a set operator (intersection, union, inclusion, complement). 2. The structuring element is shifted over the image and at each pixel of the image its elements are compared with the set of the underlying pixels. 3. If the two sets of elements match the condition defined by the set operator (e.g. if set of pixels in the structuring element is a subset of the underlying image pixels), the pixel underneath the origin of the structuring element is set to a pre-defined value (0 or 1 for binary images). 4. A morphological operator is therefore defined by its structuring element and the applied set operator. 5. Image pre-processing (noise filtering, shape simplification) 6. Enhancing object structures (skeletonization, thinning, convex hull, object marking) 7. Segmentation of the object from background 8. Quantitative descriptors of objects (area, perimeter, projection, Euler-Poincaré characteristics) binary image structuring element
  • 5. Example: Morphological Operation • Let ‘⊕’ denote a morphological operator 𝑋 ⊕ 𝐵 = {𝑝 ∈ 𝑍2|𝑝 = 𝑥 + 𝑏, 𝑥 ∈ 𝑋, 𝑏 ∈ 𝐵  
  • 6. Dilation • Morphological dilation ‘⊕’ combines two sets using vector of set elements 𝑋 ⊕ 𝐵 = {𝑝 ∈ 𝑍2 |𝑝 = 𝑥 + 𝑏, 𝑥 ∈ 𝑋, 𝑏 ∈ 𝐵 Commutative: 𝑋 ⊕ 𝐵 = 𝐵 ⊕ 𝑋 Associative: 𝑋 ⊕ 𝐵 ⊕ 𝐷 = 𝑋 ⊕ 𝐵 ⊕ 𝐷 Invariant of translation: 𝑋ℎ ⊕ 𝐵 = 𝑋 ⊕ 𝐵 ℎ If 𝑋 ⊆ 𝑌 then 𝑋 ⊕ 𝐵 ⊆ 𝑌 ⊕ 𝐵  
  • 7. Erosion 1. Morphological erosion ‘⊖’ combines two sets using vector subtraction of set elements and is a dual operator of dilation 𝑋 ⊖ 𝐵 = {𝑝 ∈ 𝑍2 |∀𝑏 ∈ 𝐵, 𝑝 + 𝑏 ∈ 𝑋 Not Commutative: 𝑋 ⊖ 𝐵 ≠ 𝐵 ⊖ 𝑋 Not associative: 𝑋 ⊖ 𝐵 ⊖ 𝐷 = 𝑋 ⊖ 𝐵 ⊖ 𝐷 Invariant of translation: 𝑋ℎ ⊖ 𝐵 = 𝑋 ⊖ 𝐵 ℎ and 𝑋 ⊖ 𝐵ℎ = 𝑋 ⊖ 𝐵 −ℎ If 𝑋 ⊆ 𝑌 then 𝑋 ⊖ 𝐵 ⊆ 𝑌 ⊖ 𝐵  !
  • 8. Duality: Dilation and Erosion • Transpose Ă of a structuring element A is defined as follows 𝐴 = {−𝑎|𝑎 ∈ 𝐴 • Duality between morphological dilation and erosion operators 𝑋 ⊖ 𝐵 𝑐 = 𝑋𝑐 ⊕ 𝐵 !   
  • 9. Hit-Or-Miss transformation • Hit-or-miss is a morphological operators for finding local patterns of pixels. Unlike dilation and erosion, this operation is defined using a composite structuring element 𝐵 = 𝐵1, 𝐵2 . The hit-or-miss operator is defined as follows 𝑋 ⊗ 𝐵 = {𝑥|𝐵1 ⊂ 𝑋 and 𝐵2 ⊂ 𝑋𝒄  
  • 10. Hit-Or-Miss transformation: another example Relation with erosion: 𝑋 ⊗ 𝐵 = 𝑋 ⊖ 𝐵1 ∩ 𝑋𝑐 ⊖ 𝐵2   
  • 12. Opening • Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads to an interesting morphological operation called opening 𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵 ! 
  • 13. Opening • Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads to an interesting morphological operation called opening 𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵  
  • 14.  Opening • Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads to an interesting morphological operation called opening 𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵
  • 15.  Opening • Erosion and dilation are not inverse transforms. An erosion followed by a dilation leads to an interesting morphological operation called opening 𝑋 ∘ 𝐵 = 𝑋 ⊖ 𝐵) ⊕ 𝐵
  • 16. Closing • A dilation followed by an erosion leads to the interesting morphological operation called closing 𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵  
  • 17. !  Closing • A dilation followed by an erosion leads to the interesting morphological operation called closing 𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵
  • 18.   Closing • A dilation followed by an erosion leads to the interesting morphological operation called closing 𝑋 • 𝐵 = 𝑋 ⊕ 𝐵) ⊖ 𝐵
  • 19. Morphological Boundary Extraction • The boundary of an object A denoted by δ(A) can be obtained by first eroding the object and then subtracting the eroded image from the original image. 𝛿 𝐴 = 𝐴 − 𝐴 ⊖ 𝐵 ! 
  • 20. Quiz • How to extract edges along a given orientation using morphological operations? • An opening followed by a closing • Or, a closing followed by an opening 𝑋 ∘ 𝐵) • 𝐵 𝑋 • 𝐵) ∘ 𝐵
  • 21. Gray Scale Morphological Operation 1 2 ( , ) y f x x  1 x 2 x Support F top surface T[A] Set A
  • 22. Gray Scale Morphological Operation • A: a subset of n-dimensional Euclidean space, A  Rn • F: support of A • Top hat or surface • A top surface is essentially a gray scale image f : F  R • An umbra U(f) of a gray scale image f : F  R is the whole subspace below the top surface representing the gray scale image f. Thus, 1 { | s.t. ( , ) } n F x R y R x y A       ( ): n T A F R  ( )( ) max{ | ( , ) } T A x y x y A   ( ) {( , ) , ( )} U f x y F R y f x    
  • 23. Gray Scale Morphological Operation 1 2 ( , ) y f x x  1 x 2 x top surface T[A]
  • 24. Gray Scale Morphological Operation • The gray scale dilation between two functions may be defined as the top surface of the dilation of their umbras • More computation-friendly definitions • Commonly, we consider the structure element k as a binary set. Then the definitions of gray-scale morphological operations simplifies to ( ( ) ( )) f k T U f U k    max{ ( ) ( )} z k f k f x z k z      min{ ( ) ( )} z k f k f x z k z      max{ ( )} z k f k f x z     min{ ( )} z k f k f x z    
  • 25. Morphological Boundary Extraction • The boundary of an object A denoted by δ(A) can be obtained by first eroding the object and then subtracting the eroded image from the original image. ( ) A A A B      
  • 26. Quiz • How to extract edges along a given orientation using morphological operations?
  • 27. Morphological noise filtering • An opening followed by a closing • Or, a closing followed by an opening ( ) X B B  ( ) X B B 
  • 29. Morphological Region Filling • Task: Given a binary image X and a (seed) point p, fill the region surrounded by the pixels of X and contains p. • A: An image where only the boundary pixels are labeled 1 and others are labeled 0 • Ac: The Complement of A • We start with an image X0 where only the seed point p is 1 and others are 0. Then we repeat the following steps until it converges 1 ( ) 1,2,3,... c k k X X B A k     
  • 31. Morphological Region Filling • The boundary of an object A denoted by δ(A) can be obtained by first eroding the object and then subtracting the eroded image from the original image. ( ) A A A B       A
  • 32. Morphological Region Filling 1 ( ) ( ) 1,2,3,... c k k X X B A k      
  • 35. Quitz: Homotopic Transformation • What is the relation between an element in the ith and i+1th levels?