Title: Morphological Image Processing
1Morphological Image Processing
2Introduction
Morphology deals with form and Structure of
animals and plants
Mathematical Morphology deals with set theory
Sets in Mathematical Morphology represents
objects in an Image
3How to represent images as sets ?
For Binary Images it is an 2-D integer space
where sets represents Black pixels (White pixels).
Y axis
X axis
4Contd....
Gray Scale images are represented as 3-D integer
space where Z axis refers to gray level value.
Y axis
X axis
Z axis
5Basic set operators
6Basic Morphology Operators
- Dilation
- Erosion
- Opening
- Closing
- Hit or Miss Transformation
7Basic Components in Morphology
- Every Operation has two elements are present .
- 1) Input Image (almost Binary)
- 2) Structuring element
- Mainly operations results depends upon the
structure element that is chosen by us.
8Dilation
- Dilation of A by B is denoted and defined as
- A ? B z ( B )z ? A ?? ?
Theoretical way of generation Obtaining
reflection of B about its origin and shifting
this reflection by z the dilation of A by B then
is set of all displacements, z such that B and A
overlap by at least one element
9How to implement this practically
Structuring element
Resultant image
Input Image
10Gray Scale Images
Structuring element
Input Image
Resultant Image
11Erosion
Erosion of A by B is denoted and defined as A? O
B z ( B )z ? A
Theoretical way of generation Erosion of A by B
is the set of all points such that B, translated
by z is contained in A.
12Binary Images
Structuring element
Output image
Input Image
13Gray scale Images
Structuring element
Input Image
Output image
14- What happens when we do dilation after erosion
and vice versa
15Answer
- Opening
- Erosion followed by dilation
- Closing
- Dilation followed by Erosion
16Opening
- Opening of A by B is denoted by
- A o B ( A
? O B ) ? B. - It is less destructive than the Erosion.
17Application
Structuring element is an 11pixel array with a
circle shape
Input Image
Resultant Image
18Closing
- Closing of A by B is denoted and defined as
- A ? B ( A ? B ) O B
- Closing is less destructive of the original
boundary shape than dilation
19Application
Structure element is in between the smaller
circle and large circle
20Hit or Miss Transform
- Basic operation where all other operators
- can be derived
- It Hit or miss transform of A by B is denoted by
-
- A B
- The difference is in structure element from
others
21Example
Structuring elements
22Thinning
- Thinning is used to remove selected pixel from
foreground pixels - Thinning of A by B is denoted and defined as
- A? B A- H/M(A,B)
- Thinning is applied repeatedly until no change is
observed in Image - A? B ((.. (A? B1) ? B2) ? B3).. ) ? Bn)
23Thinning Illustration
24Example
Input Image
Output result Image
25Thickening
- Thickening is used to grow selected regions of
foreground pixels in binary images - Thinning of A by B is denoted and defined as
?
A
B A U H/M(A,B)
Similarly Thickening is also repeatedly applied
to image until no change is observed.
26Thickening Illustration
45 degrees oriented Structuring elements
Output result Image
Input Image
27Duals
28Simple Morphology Applications
- Boundary Extraction
- Region Filling
- Connected Components
29Boundary Extraction
- Boundary of a set A is denoted by ?(A) and is
defined as - ß(A) A (A O B )
- Where B is a suitable Structuring element
- This is obtained by first eroding A by B and then
performing the set difference between A and its
erosion.
30Example
Input image
Output Image
Structure element used is a 3X3 all 1s matrix
31- What is difference between the edge detection
filters and the current approach
32Region Filling
- Based on set dilations , complementation and
intersections. - Procedure
- Xk (Xk-1 ?? B) ? Ac k 1,2,3..
- Where X0 p and B is symmetric structure element
- Terminates if Xk Xk-1
33Example
Input Image
Output result Image
34Extraction of Connected Components
- Procedure
- Assume that a point p of Y ( a connected
component in A) is known. - Following iterative expression yields all the
elements of Y. - Xk (Xk-1 ?? B) ? A k 1,2,3..
- Where X0 p and B is symmetric structure element
- Terminates if Xk Xk-1
35References
- R. C. Gonzalez and R. E. Woods Digital Image
Processing, Addison-Wesley, New York, 199, Chap
9. - E. Davies Machine Vision Theory, Algorithms and
Practicalities, Academic Press, 1990, pp 149 -
161. - R. Haralick and L. Shapiro Computer and Robot
Vision, Vol. 1, Addison-Wesley Publishing
Company, 1992, Chap. 5. - A. Jain Fundamentals of Digital Image Processing,
Prentice-Hall, 1989, Chap. 9. - http//www.cee.hw.ac.uk/hipr/html/morops.html
University of Edinburgh UK - http//www.mathworks.com/ MATLAB website