Chapter 9 Morphological Image Processing Preview Morphology denotes

  • Slides: 37
Download presentation
Chapter 9 Morphological Image Processing

Chapter 9 Morphological Image Processing

Preview Morphology: denotes a branch of biology that deals with the form and structure

Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and plants. Mathematical morphology: tool for extracting image components that are useful in the representation and description of region shapes. Filtering, thinning, pruning.

Scope Will focus on binary images. Applicable to other situations. (Higherdimensional space)

Scope Will focus on binary images. Applicable to other situations. (Higherdimensional space)

Set Theory Empty set Subset Union Intersection Disjoint sets Complement Difference Reflection of set

Set Theory Empty set Subset Union Intersection Disjoint sets Complement Difference Reflection of set B: Translation of set A by point z=(z 1, z 2):

Logic Operations AND OR NOT

Logic Operations AND OR NOT

Dilation With A and B as sets in Z 2, the dilation of A

Dilation With A and B as sets in Z 2, the dilation of A by B is defined as: Or, equivalently, B is commonly known as the structuring element.

Illustration

Illustration

Example

Example

Erosion With A and B as sets in Z 2, the erosion of A

Erosion With A and B as sets in Z 2, the erosion of A by B is defined as: Dilation and erosion are duals:

Illustration

Illustration

Example: Removing image components

Example: Removing image components

Opening and Closing Opening of set A by structuring element B: Erosion followed by

Opening and Closing Opening of set A by structuring element B: Erosion followed by dilation Closing of set A by structuring element B: Dilation followed by erosion

Opening generally smoothes the contour of an object, breaks narrow isthmuses, eliminate thin protrusions.

Opening generally smoothes the contour of an object, breaks narrow isthmuses, eliminate thin protrusions.

Closing tends to smooth contours, fuse narrow breaks and long thin gulfs, eliminate small

Closing tends to smooth contours, fuse narrow breaks and long thin gulfs, eliminate small holes, fill gaps in the contour.

Illustration

Illustration

Example

Example

Hit-or-Miss Transform Shape detection tool

Hit-or-Miss Transform Shape detection tool

Boundary Extraction Definition:

Boundary Extraction Definition:

Region Filling Beginning with a point p inside the boundary, repeat: with X 0=p

Region Filling Beginning with a point p inside the boundary, repeat: with X 0=p Until Xk=Xk-1 Conditional dilation

Example

Example

Extraction of Connected Component Beginning with a point p of the connected component, repeat:

Extraction of Connected Component Beginning with a point p of the connected component, repeat: with X 0=p Until Xk=Xk-1 The connected component Y=Xk

Illustration

Illustration

Example

Example

Convex Hull A set A is said to be convex if the straight line

Convex Hull A set A is said to be convex if the straight line segment joining any two points in A lies entirely within A. The convex hull H of an arbitrary set S is the smallest convex set containing S. H-S is called the convex deficiency of S. C(A): convex hull of a set A.

Algorithm Four structuring elements: Bi, i=1, 2, 3, 4 Repeat with X 0 i

Algorithm Four structuring elements: Bi, i=1, 2, 3, 4 Repeat with X 0 i =A until Xki=Xk-1 i to obtain Di The convex hull of A is:

Illustration

Illustration

Thinning The thinning of a set A by a structuring element B is defined

Thinning The thinning of a set A by a structuring element B is defined as:

Illustration

Illustration

Thickening

Thickening

Skeleton

Skeleton

Skeleton: Definition

Skeleton: Definition

Illustration

Illustration

Pruning

Pruning

Extension to Gray-Scale Images Dilation Max Erosion Min

Extension to Gray-Scale Images Dilation Max Erosion Min

Illustration

Illustration

Opening and Closing

Opening and Closing

Smoothing and Gradient

Smoothing and Gradient