morphology morphology deals with form and structure mathematical morphology is a tool for extracting...

23
Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description of region shape (e.g. boundaries) pre- or post-processing (filtering, thinning, etc.) Based on set theory

Upload: baldwin-skinner

Post on 19-Jan-2018

232 views

Category:

Documents


1 download

DESCRIPTION

Basic Concepts of Set Theory A is a set in, a=(a 1,a 2 ) an element of A, a  A If not, then a  A  : null (empty) set Typical set specification: C={w|w=-d, for d  D} A subset of B: A  B Union of A and B: C=A  B Intersection of A and B: D=A  B Disjoint sets: A  B=  Complement of A: Difference of A and B: A-B={w|w  A, w  B}= Reflection of B: Translation of A by z=(z 1,z 2 ):

TRANSCRIPT

Page 1: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphology

• Morphology deals with form and structure

• Mathematical morphology is a tool for extracting image components useful in:– representation and description of region shape

(e.g. boundaries)– pre- or post-processing (filtering, thinning,

etc.)• Based on set theory

Page 2: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphology

• Sets represent objects in images• Sets in binary images (x,y)• Sets in gray scale images (x,y,g)• Some morphological operations:

Dilation & ErosionOpening & Closing

Hit-or-Miss TransformBasic Algorithms

Page 3: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Basic Concepts of Set Theory• A is a set in , a=(a1,a2) an element of A, aA• If not, then aA : null (empty) set• Typical set specification: C={w|w=-d, for d D}• A subset of B: AB• Union of A and B: C=AB• Intersection of A and B: D=AB• Disjoint sets: AB= • Complement of A:• Difference of A and B: A-B={w|w A, w B}=• Reflection of B: • Translation of A by z=(z1,z2):

Z 2

Ac = {w | w ∉ A}

A ∩ Bc

ˆ B = {w | w = −b,b∈ B}

(A)z = {c | c = a + z,a∈ A}

Page 4: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 5: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 6: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 7: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description
Page 8: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• Basic definitions:

– A,B: sets in Z2 with components a=(a1,a2) and b=(b1,b2)

– Translation of A by x=(x1,x2), denoted by (A)x is defined as:

(A)x = {c| c=a+x, for a∈A}

Page 9: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• More definitions:

Reflection of B: = {x|x=-b, for b∈B}

Complement of A: Ac = {x|xA}

Difference of A & B: A-B = {x|x∈A, x B} = A∩Bc

Page 10: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• Dilation: : empty set; A,B: sets in Z2

– Dilation of A by B:

A ⊕B = {x | ( ˆ B )x ∩ A ≠ ∅}

Page 11: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• Dilation:– Obtaining the reflection of B about its origin

and then shifting this reflection by x

– The dilation of A by B then is the set of all x displacements such that and A overlap by at least one nonzero element…

Page 12: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• Dilation:

}])ˆ[(|{ AABxBA x ⊆∩=⊕

B is the structuring element in dilation.

Page 13: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 14: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 15: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Dilation & Erosion

• Erosion:

i.e. the erosion of A by B is the set of all points xsuch that B, translated by x, is contained in A.

In general:BABA cc ˆ) ( ⊕=

})(|{ ABxBA x ⊆=

Page 16: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 17: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 18: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Opening & Closing

• In essence, dilation expands an image and erosion shrinks it.

• Opening:– generally smoothes the contour of an image,

breaks isthmuses, eliminates protrusions.

• Closing:– smoothes sections of contours, but it

generally fuses breaks, holes, gaps, etc.

Page 19: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Opening & Closing

• Opening of A by structuring element B:

BBABA ⊕= ) (o

• Closing:

BBABA )( ⊕=•

Page 20: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 21: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 22: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing

Page 23: Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: representation and description

Morphological Image Processing