Top Banner
SEMINAR ON : BY: Raghukumar D.S.
33
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: Morphological image processing

SEMINAR ON :

BY:

RaghukumarD.S.

Page 2: Morphological image processing

Introduction Set Theory Concepts Structuring Elements , Hits or fits Dilation And Erosion Opening And Closing Hit-or-Miss Transformation Basic Morphological Algorithms Implementation Conclusion

ABSTRCT

Page 3: Morphological image processing

Introduction

Morphological – Shape , form , Structure

►Extracting and Describing image component

regions

►Usually applied to binary images

►Based on set Theory

Page 4: Morphological image processing

Set Theory

BASICS:

If A and B are two sets then

UNION = AUB

INTERSECTION = A∩B

COMPLIMENT = (A)c

DIFFERENCE = A-B

Page 5: Morphological image processing

A BA AND B

A.B

A OR B

A+B

NOT(A)−

𝑨0 0 0 0 1

0 1 0 1 1

1 0 0 1 0

1 1 1 1 0

BASIC LOGIC OPERATIONS :

Page 6: Morphological image processing

LOGIC OPERATIONS REPRESENTATION:

Page 7: Morphological image processing

Structuring elements can be any size

Structuring make any shape

Structuring Elements

1 1 1

1 1 1

1 1 1

0 0 1 0 0

0 1 1 1 0

1 1 1 1 1

0 1 1 1 0

0 0 1 0 0

0 1 0

1 1 1

0 1 0

Rectangular structuring elements with their origin at the middle

pixel

Page 8: Morphological image processing

Hits And Fits

Hit: Any on pixel in the structuring element covers an on pixel in the image

B

AC

Structuring Element

Fit: All on pixels in the

structuring element cover

on pixels in the image

Page 9: Morphological image processing

0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 1 1 0 0 0 0 0 0 0

0 0 1 1 1 1 1 0 0 0 0 0

0 1 1 1 1 1 1 1 0 0 0 0

0 1 1 1 1 1 1 1 0 0 0 0

0 0 1 1 1 1 1 1 0 0 0 0

0 0 1 1 1 1 1 1 1 0 0 0

0 0 1 1 1 1 1 1 1 1 1 0

0 0 0 0 0 1 1 1 1 1 1 0

0 0 0 0 0 0 0 0 0 0 0 0

B C

A

1 1 1

1 1 1

1 1 1

Structuring

Element 1

0 1 0

1 1 1

0 1 0

Structuring

Element 2

Hits And Fits

Page 10: Morphological image processing

Dilation

Dilation of image f by structuring element s is given

by f s

The structuring element s is positioned with its origin

at (x, y) and the new pixel value is determined using

the rule:

otherwise 0

hits if 1),(

fsyxg

Page 11: Morphological image processing

Example

Structuring Element

Original Image

Processed Image

Page 12: Morphological image processing

Structuring Element

Original Image Processed Image With Dilated Pixels

Example

Page 13: Morphological image processing

Erosion

Erosion of image f by structuring element s is given

by f s

The structuring element s is positioned with its

origin at (x, y) and the new pixel value is determined

using the rule:

otherwise 0

fits if 1),(

fsyxg

Page 14: Morphological image processing

Structuring Element

Original Image

Processed Image With Eroded Pixels

Example

Page 15: Morphological image processing

Structuring Element

Original Image Processed Image

Example

Page 16: Morphological image processing

Erosion v/s Dilation

Erosion

removal of structures of

certain shape and size,

given by SE

Erosion can split apart

joined objects and strip

away extrusions

Dilation

filling of holes of

certain shape and

size, given by SE

can repair breaks

and intrusions

Page 17: Morphological image processing

Opening And Closing

Combine to

Opening object

Closing background

keep general shape but

smooth with respect to

can be performed by performing combinations of

erosions and dilations

Page 18: Morphological image processing

Opening

Erosion followed by dilation

denoted by ∘

BBABA )(

Page 19: Morphological image processing

Structuring Element

Original Image Processed Image

Example

Page 20: Morphological image processing

Structuring Element

Original Image Processed Image

Example

Page 21: Morphological image processing

Closing

Dilation followed by erosion

denoted by •

f • s = (f s)s

Page 22: Morphological image processing

Structuring Element

Original Image Processed Image

Example

Page 23: Morphological image processing

Structuring Element

Original Image Processed Image

Example

Page 24: Morphological image processing

Opening V/S Closing

Opening

AB is a subset

(subimage) of A

If C is a subset of D,

then C B is a subset

of D B

(A B) B = A B

Closing

A is a subset

(subimage) of AB

If C is a subset of D,

then C B is a subset

of D B

(A B) B = A B

Note: repeated openings/closings has no effect!

Page 25: Morphological image processing

Hit or Miss Transformation

Useful to identify specified configuration of pixels,

such as, isolated foreground pixels or pixels at end

of lines (end points)

)2()1(* BABABA

Page 26: Morphological image processing

Illustration

Original Image A and B1 A eroded by B1

Complement of OriginalImage and B2

Page 27: Morphological image processing

Erosion of A complementAnd B2

Intersection of eroded images

Page 28: Morphological image processing

Morphological Algorithms

Using the simple technique we have

looked at so far we can begin to consider

some more interesting morphological

algorithms

We will look at:

Boundary extraction

Page 29: Morphological image processing

Extracting the boundary (or outline) of an object

is often extremely useful

The boundary can be given simply as

β(A) = A – (AB)

Boundary Extraction

Page 30: Morphological image processing

Illusration

Page 31: Morphological image processing

A simple image and the result of

performing boundary extraction using a

square structuring element

Original Image Extracted Boundary

Example

Page 32: Morphological image processing

Conclusion

Morphology is powerful set of tools for extracting

features in an image

We implement algorithms like Thinning thickening

Skeletons etc. various purpose of image

processing activities like semantation.

Page 33: Morphological image processing

Thank you