Morphological Image Processing. Chapter 9

Содержание

Слайд 2

Mirroring of an object

In asymmetric structure elements we don’t use the original

Mirroring of an object In asymmetric structure elements we don’t use the
structure element we mirror it around it’s origin.

Слайд 3

Mirroring of an object

Mirroring of an object

Слайд 4

Mirroring of an object

This is the structure element will be used.

Mirroring of an object This is the structure element will be used.

Слайд 5

Mirroring of an object

In symmetric structure elements it will not matter to

Mirroring of an object In symmetric structure elements it will not matter to mirror or not.
mirror or not.

Слайд 6

We have 2 main morphological operations

Dilation Erosion

The rule is: if the structure

We have 2 main morphological operations Dilation Erosion The rule is: if
element has at least one pixel of binary 1, the origin will be 1

The rule is: if the structure element has at least one pixel of binary 0, the origin will be 0. The structure element should be totally contained inside the body to give 1 at the origin.

Слайд 7

For simplicity we imagine a moving origin on the boundary of the

For simplicity we imagine a moving origin on the boundary of the
body and the whole structure element to be changed

Dilation Erosion

The rule is: The origin moves on boundary and the structure element draw ones.

The rule is: The origin moves on boundary and the structure element draw zeros.

Слайд 8

Dilation Erosion

Dilating point ? structure element
Eroding a body with an structure element

Dilation Erosion Dilating point ? structure element Eroding a body with an
of the same shape ? point

Слайд 9

Dilate

Object Structure
Element

Mirroring of Symmetric object, gives the same object.

Dilate Object Structure Element Mirroring of Symmetric object, gives the same object.

Слайд 10

Dilate

Structure
Object Element

Mirroring of Symmetric object, gives the same object.

Dilate Structure Object Element Mirroring of Symmetric object, gives the same object.

Слайд 11

Erode

Object Structure
Element

Mirroring of Symmetric object, gives the same object.

Erode Object Structure Element Mirroring of Symmetric object, gives the same object.

Слайд 12

Structure
Object Element

Mirroring of Symmetric object, gives the same object.

Erode

Structure Object Element Mirroring of Symmetric object, gives the same object. Erode

Слайд 13

Find object of size 15 “max size”

1- erode by structure element 15,

Find object of size 15 “max size” 1- erode by structure element
will give pixel 1 at the origin of objects 15, and zero otherwise.

Слайд 14

Find object of size 15 “max size”

2- dilate by structure element 15,

Find object of size 15 “max size” 2- dilate by structure element
will retrieve the objects of size 15.

Слайд 17

Open and Close

Open:
Erode first then Dilate.
Close:
Dilate first then Erode.

Open and Close Open: Erode first then Dilate. Close: Dilate first then Erode.

Слайд 18

open

1- Erode

open 1- Erode

Слайд 19

open

2- Dilate

open 2- Dilate

Слайд 20

Close

1- Dilate

Close 1- Dilate

Слайд 21

Close

2- Erode

Close 2- Erode

Слайд 22

Hit or Miss

We want to identify specific object.
Make a structure element with

Hit or Miss We want to identify specific object. Make a structure
the same shape of the required object,
Erode the image with the structure element,
The required object and bigger will be replaced by 1 pixel at the origin.
Complement the image , complement the structure element,
Erode the inverted image with the inverted structure element.

Слайд 23

Image

Hit or Miss

Structure element

×

a

a

We want elements of cross of ones with 4

Image Hit or Miss Structure element × a a We want elements
zeros at the corners not this

Output No.1

Слайд 24

Image complement

Hit or Miss

Structure element

×

a

a

Here we will check the 4 zeros at

Image complement Hit or Miss Structure element × a a Here we
the corners

Image

Structure element
complement

a

a

a

Output No.2

Слайд 25

Hit or Miss

Anding the 2 output images

a

a

Hit or Miss Anding the 2 output images a a

Слайд 26

Hit or Miss

Find X

Erode by X

Complement

Erode by (W-X)
W is one pixel

Hit or Miss Find X Erode by X Complement Erode by (W-X)
bigger than X in all directions

Слайд 27

Hit or Miss

While eroding Z the structure element hit the gap of

Hit or Miss While eroding Z the structure element hit the gap
X creating the L shape

Слайд 28

Boundary Extraction

Eroding an object by small structure element then substitute the original

Boundary Extraction Eroding an object by small structure element then substitute the
image – the result of erosion will give you the boundary of the object.

Erode by B

Anded with complement of the result of the prev. step

Слайд 29

Region Filling

It needs many iterations to be done.
Starting by point inside the

Region Filling It needs many iterations to be done. Starting by point
region, dilate with cross structure element (+) , And the output with the complement of original image.

Starting point

Complement

Слайд 30

Dilate

Anding

Dilate Anding

Слайд 31

Dilate

Anding

Dilate Anding

Слайд 32

Dilate

Anding

Dilate Anding

Слайд 33

Dilate

Anding

Dilate Anding

Слайд 34

Dilate

Anding

Dilate Anding

Слайд 35

Dilate

Anding

Dilate Anding

Слайд 36

Dilate

Anding

Dilate Anding

Слайд 37

The last 2 iterations are the same ? stop

Dilate

Anding

The last 2 iterations are the same ? stop Dilate Anding

Слайд 38

The Result is the union of the region fill and the boundary

The Result is the union of the region fill and the boundary

Слайд 39

Extraction of Connected Component

It needs many iterations to be done.
Starting by point

Extraction of Connected Component It needs many iterations to be done. Starting
inside the component, dilate with square structure element , And the output with the original image.

Select a starting point on the component

Слайд 40

Extraction of Connected Component

Dilate

Anding

Extraction of Connected Component Dilate Anding

Слайд 41

Extraction of Connected Component

Dilate

Anding

Extraction of Connected Component Dilate Anding

Слайд 42

Extraction of Connected Component

After many iterations we will get this shape

Extraction of Connected Component After many iterations we will get this shape

Слайд 43

Extraction of Connected Component

By dilating this shape then anding this shape with

Extraction of Connected Component By dilating this shape then anding this shape
the original image we will get the same shape.
The last 2 iterations are the same ? stop

Слайд 44

Fully contained will not erase

Fully contained will not erase

Слайд 45

Not fully contained

Not fully contained

Слайд 46

Not fully contained

Not fully contained

Слайд 47

Not fully contained

Not fully contained

Слайд 49

(c) Only Non overlapping particles:

Hit or miss

(c) Only Non overlapping particles: Hit or miss

Слайд 50

(a) Only of particles that have merged with boundary of the image

1-

(a) Only of particles that have merged with boundary of the image
make a boundary of the image.
2- And the image with the boundary.
3- Extract Connected Component by expansion starting with this seed.

Слайд 51

(b) Only Overlapped particles:

Original Image – the 2 previous results ,

(b) Only Overlapped particles: Original Image – the 2 previous results ,
such that the image only contain 3 types of particles:
Overlapped.
non overlapped.
On boundary.
Имя файла: Morphological-Image-Processing.-Chapter-9.pptx
Количество просмотров: 41
Количество скачиваний: 0