E N D
Morphology • Morphology is a branch of biology , deals with form and structure of animals and plants • 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
Morphology • Sets represent objects in images • Sets in binary images (x,y) • Sets in gray scale images (x,y,g) • Some morphological operations: Dilation & Erosion Opening & Closing Hit-or-Miss Transform Basic Algorithms
Dilation & Erosion • Basic operations • Are dual to each other - Erosion shrinks foreground and enlarges background - Dilation enlarges foreground and shrinks background
Dilation & Erosion • Dilation: “grows’ or “thickens” objects in an image. One of the simplest application of dilation is bridging gaps. • Erosion: Shrinking or thinning operation.
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Example for Erosion • Input image • Structuring element • Output image
Erosion • Erosion is the set of all points in the image , where the structuring element “ fits into” • Consider each foreground pixel in the input image - if the structuring element fits in, write a “1” at the origin of the structuring element
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Example for Dilation • Input image • Structuring element • Output image
Dilation • Dilation is the set of all points in the image , where the structuring element “touches” the foreground • Consider each pixel in the input image - if the structuring element touches the foreground image, write a “1” at the origin of the structuring element
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}
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
Dilation & Erosion • Dilation: • : empty set; A,B: sets in Z2 • Dilation of A by B:
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…
Dilation & Erosion • Dilation: B is the structuring element in dilation.
Dilation & Erosion • Erosion: i.e. the erosion of A by B is the set of all points x such that B, translated by x, is contained in A. In general: