SlideShare a Scribd company logo
1 of 54
Some practical uses
of morphology
It is possible to segment an image into regions
of common attribute by detecting the boundary
of each region for which there is a significant
change in attribute across the boundary
2
3
Boundary of an
object
Consists of pixels that
belong to the object(s) itself
Consists of pixels that
belong to the background
Relation??
They are same
4
Boundary of set A
β(A)
1. Erode A by B
2. Perform set difference between A & its
erosion
Example
Input image
Output Image
Structure element used is a 3X3 all 1s matrix
5
6
7
8
Let A be a set. It contains a subset whose
elements are 8-connected boundary
points of a region.
All non-boundary points are labelled 0.
Set A
9
Beginning with a point p inside the
boundary, the objective is to fill the
entire region with 1s.
A value 1 is assigned to the point p (p is an
arbitrarily selected point inside the boundary)
p
10
Set Ac
The region is filled with 1s by the
following procedure.
Xk = (Xk-1 B) ∩ Ac for k = 1, 2, …
where X0 = p
Structuring element
B
origin
11
Structuring element
B
origin
X0
12
∩
Set Ac
X1
13
The algorithm terminates at iteration
step k if Xk = Xk-1.
The set union of Xk and A contains the
filled set & its boundary.
The dilation process would fill the entire area if left
unchecked.
The intersection with Ac at each step limits the result to
inside the region of interest.
14
15
16
Extraction of connected components
in a binary image is central to many
automated image analysis
applications
17
Let A be a set and Y be a connected component in it.
Point p of Y is known.
The following iterative expression yields all the elements
of Y.
Set A
p
Y
X0 = p
X
Structuring
element B
18
19
Set A is said to be convex, if
the straight line segment
joining any two points in A lies
entirely within A
20
The convex hull H of an arbitrary set
S is the smallest convex set
containing S
The set difference H – S is called the
convex deficiency of S
Convex hull & Convex
deficiency
useful for object description
21
Algorithm for obtaining Convex
Hull, C(A), of a set A
 There are four convex hull masks, where 1
represents black, 0 represents white and X
represents a pixel that doesn’t matter, either
0 or 1.
1 x x
1 0 x
1 x x
1 1 1
x 0 x
x x x
x x 1
x 0 1
x x 1
x x x
x 0 x
1 1 1
B1 B2
B3 B4
22
 The procedure consists of implementing the
following equation
Note: converged means when
• Where A represents iteratively applying the hit-or-miss
transform with the 4 masks.
• When the masks produce no more changes, the union is
performed between all 4 masks and the result becomes Di
+1
+1
23
Convex Hull Masks
 Convex hull uses the hit or miss
function
 If any of these masks are found in the
image, then that middle pixel on the
image is replaced with a 1 or black
respectively.
 To achieve the complete convex hull
image, these masks must be applied
repeatedly until no further changes
occur.
24
25
1 x x
1 0 x
1 x x
B1
26
1 1 1
x 0 x
x x x
B2
27
x x 1
x 0 1
x x 1
B3
28
x x x
x 0 x
1 1 1
B4
29
30
To reduce this effect limit growth so that it
does not extend past the vertical &
horizontal dimensions of the original set
of points
31
32
Boundaries of greater complexity can be
used to limit growth even further in
images with more detail.
e.g. the maximum dimensions of the original
set of points along vertical, horizontal &
diagonal directions can be used.
Price paid for such refinements ??
Additional complexity
33
34
Thinning: from many pixels width to
just one
• Much work has been done on the thinning
of ``thick'' binary images,
• where attempts are made to reduce shape
outlines which are many pixels thick to
outlines which are only one pixel thick.
Thinning of thick binary images
35
Erase black pixels such that
An object without holes erodes to a
minimally connected stroke located
equidistant from its nearest outer
boundaries
An object with holes erodes to a
minimally connected ring midway between
each hole & its nearest outer boundary.
Thinning is used to remove selected
foreground pixels from binary images
36
Thinning
Original
image
Thinned
image
37
Applying thinning to
fault detection in PCB
All lines are thinned to one pixel width
Now you can check connectivity
38
Thinning is basically a search & delete process.
It removes only those boundary pixels from the
image whose deletion
Does not change connectivity of their
neighbours locally and
Does not reduce the length of an already
thinned curve
Critical pixel
Its deletion changes the
connectivity of its
neighbourhood locally
End pixel
Its deletion reduces the length
of an already thinned curve.
The no. of neighbouring pixels
of an end pixel are ??
39
Some boundary pixels
0 1 1
0 1 1
0 1 0
0 1 1
0 1 1
1 0 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 0 1
0 1 0
0 1 1
0 0 0
0 0 0
0 1 1
0 0 0
0 0 0
0 1 0
0 0 1
(a) (b) (c) (d)
(e) (f) (g)
The image A is
8-connected
The centre pixel of which windows is a
critical pixel ?
(b), (c), (d)
40
0 1 1
0 1 1
0 1 0
0 1 1
0 1 1
1 0 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 0 1
0 1 0
0 1 1
0 0 0
0 0 0
0 1 1
0 0 0
0 0 0
0 1 0
0 0 1
(a) (b) (c) (d)
(e) (f) (g)
The centre pixel of which windows is a
end pixel ?
(f), (g)
41
0 1 1
0 1 1
0 1 0
0 1 1
0 1 1
1 0 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 0 1
0 1 0
0 1 1
0 0 0
0 0 0
0 1 1
0 0 0
0 0 0
0 1 0
0 0 1
(a) (b) (c) (d)
(e) (f) (g)
The centre pixel of which windows can be
deleted without affecting local connectivity
of the neighbourhood or reducing the length
of the arc?
(a), (e)
42
0 1 1
0 1 1
0 1 0
0 1 1
0 1 1
1 0 0
(a) (b)
What happens to the centre pixels when we
consider the image A to be 4-connected?
In (a) the centre pixel becomes critical,
while in (b) it is not
43
44
45
46
47
Thinning removes only those boundary pixels from the image
whose deletion
Does not change connectivity of their neighbours locally and
Does not reduce the length of an already thinned curve
The deletion of all boundary pixels that satisfy the
above criteria should be done simultaneously to
ensure symmetry in the resultant skeleton.
However, such strategy may delete completely a
curve segment such as the one given below since all
the pixels satisfy the above criteria.
1 1 1 1 1 1
1 1 1 1 1 1
48
Solutio
n to the
proble
m
Apply the deletion process
simultaneously to all boundary
pixels of a particular side (N, S,
E or W)
How to find out the pixels
of the north boundary?
Pixel (x,y) is in the north boundary
if pixel (x, y+1) is in Ac
When is pixel (x, y) in the S, E or W boundary?
1 1 1
1 1
1 1
1 1 1
X
49
50
The thinning of a set A by a
structuring element B can be defined
in terms of the
hit-or-miss transform
51
A more useful expression for
thinning A symmetrically
Use a sequence of structuring elements
{B} = {B1, B2, ..., Bn}
where Bi is the rotated version of Bi-1
52
Thinning
Thinning is often accomplished
using a sequence of rotated
structuring elements (a). Given
a set A (b), results of thinning
with first element is shown in
(c), and the next 7 elements (d)
– (i). There is no change
between 7th and 8th elements,
and no change after first 3
elements. Then it converges to
a m-connectivity.
 
   
   
 
 
n
n
B
B
B
A
B
A
B
B
B
B
B
A
hitnmiss
A
B
A












2
1
2
1
,
,
,
53
Thickening is the morphological dual of thinning
Thickening can also be defined as
a sequential operation
54
A separate algorithm is rarely
used for thickening
The usual procedure??
Thin the background of the set in
question & then take the complement
of the result
To thicken A
 Let C = Ac
 Thin C
 Take Cc

More Related Content

Similar to DIP_14_54_boundary extraction in dip .ppt

Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphology
Rumah Belajar
 
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.pdf
Morphological.pdfMorphological.pdf
Morphological.pdf
pawankamal3
 
Project2
Project2Project2
Project2
?? ?
 

Similar to DIP_14_54_boundary extraction in dip .ppt (20)

ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation 3 morphology
Image segmentation 3 morphologyImage segmentation 3 morphology
Image segmentation 3 morphology
 
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...
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
Deblurring3
Deblurring3Deblurring3
Deblurring3
 
mesh generation techniqure of structured gridpdf
mesh generation techniqure of structured gridpdfmesh generation techniqure of structured gridpdf
mesh generation techniqure of structured gridpdf
 
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
 
1545 integration-define
1545 integration-define1545 integration-define
1545 integration-define
 
1544 integration-define
1544 integration-define1544 integration-define
1544 integration-define
 
Morphological.pdf
Morphological.pdfMorphological.pdf
Morphological.pdf
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Project2
Project2Project2
Project2
 
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEAU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
 
Chapter 9 newer
Chapter 9   newerChapter 9   newer
Chapter 9 newer
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary Extraction
 
Higher papers 2007 - 2013
Higher papers 2007 -  2013Higher papers 2007 -  2013
Higher papers 2007 - 2013
 
Cs8092 computer graphics and multimedia unit 3
Cs8092 computer graphics and multimedia unit 3Cs8092 computer graphics and multimedia unit 3
Cs8092 computer graphics and multimedia unit 3
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 

Recently uploaded

Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
Sampad Kar
 

Recently uploaded (20)

Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoning
 
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Lesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsxLesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsx
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and Applications
 

DIP_14_54_boundary extraction in dip .ppt

  • 2. It is possible to segment an image into regions of common attribute by detecting the boundary of each region for which there is a significant change in attribute across the boundary 2
  • 3. 3 Boundary of an object Consists of pixels that belong to the object(s) itself Consists of pixels that belong to the background Relation?? They are same
  • 4. 4 Boundary of set A β(A) 1. Erode A by B 2. Perform set difference between A & its erosion
  • 5. Example Input image Output Image Structure element used is a 3X3 all 1s matrix 5
  • 6. 6
  • 7. 7
  • 8. 8 Let A be a set. It contains a subset whose elements are 8-connected boundary points of a region. All non-boundary points are labelled 0. Set A
  • 9. 9 Beginning with a point p inside the boundary, the objective is to fill the entire region with 1s. A value 1 is assigned to the point p (p is an arbitrarily selected point inside the boundary) p
  • 10. 10 Set Ac The region is filled with 1s by the following procedure. Xk = (Xk-1 B) ∩ Ac for k = 1, 2, … where X0 = p Structuring element B origin
  • 13. 13 The algorithm terminates at iteration step k if Xk = Xk-1. The set union of Xk and A contains the filled set & its boundary. The dilation process would fill the entire area if left unchecked. The intersection with Ac at each step limits the result to inside the region of interest.
  • 14. 14
  • 15. 15
  • 16. 16 Extraction of connected components in a binary image is central to many automated image analysis applications
  • 17. 17 Let A be a set and Y be a connected component in it. Point p of Y is known. The following iterative expression yields all the elements of Y. Set A p Y X0 = p X Structuring element B
  • 18. 18
  • 19. 19 Set A is said to be convex, if the straight line segment joining any two points in A lies entirely within A
  • 20. 20 The convex hull H of an arbitrary set S is the smallest convex set containing S The set difference H – S is called the convex deficiency of S Convex hull & Convex deficiency useful for object description
  • 21. 21 Algorithm for obtaining Convex Hull, C(A), of a set A  There are four convex hull masks, where 1 represents black, 0 represents white and X represents a pixel that doesn’t matter, either 0 or 1. 1 x x 1 0 x 1 x x 1 1 1 x 0 x x x x x x 1 x 0 1 x x 1 x x x x 0 x 1 1 1 B1 B2 B3 B4
  • 22. 22  The procedure consists of implementing the following equation Note: converged means when • Where A represents iteratively applying the hit-or-miss transform with the 4 masks. • When the masks produce no more changes, the union is performed between all 4 masks and the result becomes Di +1 +1
  • 23. 23 Convex Hull Masks  Convex hull uses the hit or miss function  If any of these masks are found in the image, then that middle pixel on the image is replaced with a 1 or black respectively.  To achieve the complete convex hull image, these masks must be applied repeatedly until no further changes occur.
  • 24. 24
  • 25. 25 1 x x 1 0 x 1 x x B1
  • 26. 26 1 1 1 x 0 x x x x B2
  • 27. 27 x x 1 x 0 1 x x 1 B3
  • 28. 28 x x x x 0 x 1 1 1 B4
  • 29. 29
  • 30. 30 To reduce this effect limit growth so that it does not extend past the vertical & horizontal dimensions of the original set of points
  • 31. 31
  • 32. 32 Boundaries of greater complexity can be used to limit growth even further in images with more detail. e.g. the maximum dimensions of the original set of points along vertical, horizontal & diagonal directions can be used. Price paid for such refinements ?? Additional complexity
  • 33. 33
  • 34. 34 Thinning: from many pixels width to just one • Much work has been done on the thinning of ``thick'' binary images, • where attempts are made to reduce shape outlines which are many pixels thick to outlines which are only one pixel thick. Thinning of thick binary images
  • 35. 35 Erase black pixels such that An object without holes erodes to a minimally connected stroke located equidistant from its nearest outer boundaries An object with holes erodes to a minimally connected ring midway between each hole & its nearest outer boundary. Thinning is used to remove selected foreground pixels from binary images
  • 37. 37 Applying thinning to fault detection in PCB All lines are thinned to one pixel width Now you can check connectivity
  • 38. 38 Thinning is basically a search & delete process. It removes only those boundary pixels from the image whose deletion Does not change connectivity of their neighbours locally and Does not reduce the length of an already thinned curve Critical pixel Its deletion changes the connectivity of its neighbourhood locally End pixel Its deletion reduces the length of an already thinned curve. The no. of neighbouring pixels of an end pixel are ??
  • 39. 39 Some boundary pixels 0 1 1 0 1 1 0 1 0 0 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 (a) (b) (c) (d) (e) (f) (g) The image A is 8-connected The centre pixel of which windows is a critical pixel ? (b), (c), (d)
  • 40. 40 0 1 1 0 1 1 0 1 0 0 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 (a) (b) (c) (d) (e) (f) (g) The centre pixel of which windows is a end pixel ? (f), (g)
  • 41. 41 0 1 1 0 1 1 0 1 0 0 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 (a) (b) (c) (d) (e) (f) (g) The centre pixel of which windows can be deleted without affecting local connectivity of the neighbourhood or reducing the length of the arc? (a), (e)
  • 42. 42 0 1 1 0 1 1 0 1 0 0 1 1 0 1 1 1 0 0 (a) (b) What happens to the centre pixels when we consider the image A to be 4-connected? In (a) the centre pixel becomes critical, while in (b) it is not
  • 43. 43
  • 44. 44
  • 45. 45
  • 46. 46
  • 47. 47 Thinning removes only those boundary pixels from the image whose deletion Does not change connectivity of their neighbours locally and Does not reduce the length of an already thinned curve The deletion of all boundary pixels that satisfy the above criteria should be done simultaneously to ensure symmetry in the resultant skeleton. However, such strategy may delete completely a curve segment such as the one given below since all the pixels satisfy the above criteria. 1 1 1 1 1 1 1 1 1 1 1 1
  • 48. 48 Solutio n to the proble m Apply the deletion process simultaneously to all boundary pixels of a particular side (N, S, E or W) How to find out the pixels of the north boundary? Pixel (x,y) is in the north boundary if pixel (x, y+1) is in Ac When is pixel (x, y) in the S, E or W boundary? 1 1 1 1 1 1 1 1 1 1 X
  • 49. 49
  • 50. 50 The thinning of a set A by a structuring element B can be defined in terms of the hit-or-miss transform
  • 51. 51 A more useful expression for thinning A symmetrically Use a sequence of structuring elements {B} = {B1, B2, ..., Bn} where Bi is the rotated version of Bi-1
  • 52. 52 Thinning Thinning is often accomplished using a sequence of rotated structuring elements (a). Given a set A (b), results of thinning with first element is shown in (c), and the next 7 elements (d) – (i). There is no change between 7th and 8th elements, and no change after first 3 elements. Then it converges to a m-connectivity.               n n B B B A B A B B B B B A hitnmiss A B A             2 1 2 1 , , ,
  • 53. 53 Thickening is the morphological dual of thinning Thickening can also be defined as a sequential operation
  • 54. 54 A separate algorithm is rarely used for thickening The usual procedure?? Thin the background of the set in question & then take the complement of the result To thicken A  Let C = Ac  Thin C  Take Cc

Editor's Notes

  1. William K Pratt
  2. The no. of neighbouring pixels of an end pixel are less than two.
  3. S – (x, y-1) E – (x-1, y) W – (x+1, y)
  4. Woods Gonzalez