Top Banner
9 Morphological Image Processing Angela Chih-Wei Tang Department of Communication Engineering National Central University JhongLi, Taiwan 2009 Fall
34

9 Morphological Image Processing

Feb 10, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 9 Morphological Image Processing

9 Morphological Image Processing

Angela Chih-Wei Tang

Department of Communication Engineering

National Central University

JhongLi, Taiwan

2009 Fall

Page 2: 9 Morphological Image Processing

Outline

� Preliminaries

� Dilation and erosion

� Opening and closing

� Some basic morphological algorithms

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 2

� Some basic morphological algorithms

� Extensions to gray-scale images

Page 3: 9 Morphological Image Processing

Basic Concepts from Set Theory� Sets: objects in an image

� Set theory: the language of mathematical

morphology

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 33

Page 4: 9 Morphological Image Processing

4C.E., NCU, Taiwan 4Angela Chih-Wei Tang, 2009

Page 5: 9 Morphological Image Processing

5C.E., NCU, Taiwan 5Angela Chih-Wei Tang, 2009

Page 6: 9 Morphological Image Processing

6C.E., NCU, Taiwan 6Angela Chih-Wei Tang, 2009

Page 7: 9 Morphological Image Processing

7C.E., NCU, Taiwan 7Angela Chih-Wei Tang, 2009

Page 8: 9 Morphological Image Processing

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 88

Page 9: 9 Morphological Image Processing

Translation and Reflection

� They are extended from morphology but not

found in basic texts on set theory

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 9

Page 10: 9 Morphological Image Processing

Outline

� Preliminaries

� Dilation and erosion

� Opening and closing

Some basic morphological algorithms

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 10

� Some basic morphological algorithms

� Extensions to gray-scale images

Page 11: 9 Morphological Image Processing

Reflection

Translation

11C.E., NCU, Taiwan 11Angela Chih-Wei Tang, 2009

Page 12: 9 Morphological Image Processing

Use of Morphological Dilation

for Bridging Gaps

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 12

Page 13: 9 Morphological Image Processing

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 1313

Page 14: 9 Morphological Image Processing

Use of Morphological Erosion for

Removing Image Components

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 14

Page 15: 9 Morphological Image Processing

Outline

� Preliminaries

� Dilation and erosion

� Opening and closing

Some basic morphological algorithms

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 15

� Some basic morphological algorithms

� Extensions to gray-scale images

Page 16: 9 Morphological Image Processing

Opening and Closing

� Opening: smooth the contour of an object, breaks narrow isthmuses, and eliminates thin protrusions

� Closing: smooth sections of contours, but it

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 16

� Closing: smooth sections of contours, but it generally fuses narrow breaks and long thin gulfs, eliminates small holes, and fills gaps in the contour

Page 17: 9 Morphological Image Processing

Opening

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 17

Page 18: 9 Morphological Image Processing

Closing

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 18

Page 19: 9 Morphological Image Processing

19

Opening

ClosingC.E., NCU, Taiwan 19Angela Chih-Wei Tang, 2009

Page 20: 9 Morphological Image Processing

Use of Opening and Closing for

Morphological Filtering

20C.E., NCU, Taiwan 20Angela Chih-Wei Tang, 2009

Page 21: 9 Morphological Image Processing

Outline

� Preliminaries

� Dilation and erosion

� Opening and closing

Some basic morphological algorithms

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 21

� Some basic morphological algorithms

� Extensions to gray-scale images

Page 22: 9 Morphological Image Processing

Boundary Extraction

StructureElement

Erosion

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 22

Page 23: 9 Morphological Image Processing

Example –

Boundary Extraction

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 23

Page 24: 9 Morphological Image Processing

Region Filling

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 24

Dilation

Complement

Page 25: 9 Morphological Image Processing

Example – Region Filling

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 25

Page 26: 9 Morphological Image Processing

Extraction of Connected Components

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 26

�Converge!!!

1 If

−==

kkXX

kXY =⇒ Let

Page 27: 9 Morphological Image Processing

Outline

� Preliminaries

� Dilation and erosion

� Opening and closing

Some basic morphological algorithms

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 27

� Some basic morphological algorithms

� Extensions to gray-scale images

Page 28: 9 Morphological Image Processing

2-D Dilation

� General effects:

� If all the values of the structuring

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 28

� If all the values of the structuring

element are positive, the output image

tends to be brighter than the input

� Dark details either are reduced or

eliminated, depending on how their

values and shapes relate to the

structuring element used for dilation

Page 29: 9 Morphological Image Processing

1-D Dilation

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 29

Page 30: 9 Morphological Image Processing

2-D Erosion

� General effects

If all the elements of the structuring

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 30

� If all the elements of the structuring

element are positive, the output image

tends to be darker than the input image

� The effect of bright details in the input

image that are smaller in area than the

structuring element is reduced

Page 31: 9 Morphological Image Processing

1-D Erosion

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 31

Page 32: 9 Morphological Image Processing

Dilation and Erosion on

A Gray-Scale Image

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 32

Page 33: 9 Morphological Image Processing

Opening and Closing

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 33

Page 34: 9 Morphological Image Processing

Gray-Scale Opening and Closing

C.E., NCU, Taiwan Angela Chih-Wei Tang, 2009 34