Lec4 Morphological Image Processing DPATRA
Lec4 Morphological Image Processing DPATRA
Dipti Patra
Department of Electrical Engineering
NIT Rourkela
Preview
“Morphology “ – a branch in biology that deals with the form
and structure of animals and plants.
“Mathematical Morphology” – as a tool for extracting
image components, that are useful in the representation and
description of region shape.
The language of mathematical morphology is – Set theory.
Unified and powerful approach to numerous image
processing problems.
Union
Intersection
11/25/2021 31
9.5.2 Region Filling
9.5.3 Extraction of Connected
Components
This algorithm extracts a component by selecting a
point on a binary object A
11/25/2021 48
9.5.7 Skeleton
The notion of a skeleton S(A) of a set A is intuitively
defined, we deduce from this figure that:
with
Where B is the structuring element and indicates k
successive erosions of A:
11/25/2021 56
X 1 A {B}
Pruning:
Example
11/25/2021 57
X 2 X1 * Bk
8
k 1
Pruning:
Example
11/25/2021 58
Pruning:
Example X3 X2 H A
H : 3 3 structuring element
11/25/2021 59
Pruning:
Example
X 4 X1 X 3
11/25/2021 60
Pruning:
Example
11/25/2021 61
Morphological Reconstruction
11/25/2021 62
Morphological Reconstruction: Geodesic Dilation
RGD ( F ) DG( k ) (F )
11/25/2021 67
11/25/2021 68
Morphological Reconstruction by Erosion
RGE ( F ) EG( k ) ( F )
11/25/2021 69
Opening by Reconstruction
The opening by reconstruction of size n of an image F is
defined as the reconstruction by dilation of F from the
erosion of size n of F ; that is
11/25/2021 70
11/25/2021 71
Filling Holes
Let I ( x, y ) denote a binary image and suppose that we
form a marker image F that is 0 everywhere, except at
the image border, where it is set to 1- I ; that is
1 I ( x, y ) if ( x, y ) is on the border of I
F ( x, y )
0 otherwise
then
c
H R ( F )
D
Ic
11/25/2021 72
SE : 3 3 1s.
11/25/2021 73
c
H R ( F )
D
Ic
11/25/2021 74
Border Clearing
It can be used to screen images so that only complete objects
remain for further processing; it can be used as a singal that
partial objects are present in the field of view.
11/25/2021 75
11/25/2021 76
Summary (1)
11/25/2021 77
9.6 Gray-Scale Images
In gray scale images on the contrary to binary images
we deal with digital image functions of the form f(x,y)
as an input image and b(x,y) as a structuring element.
(x,y) are integers from Z*Z that represent a coordinates
in the image.
f(x,y) and b(x,y) are functions that assign gray level
value to each distinct pair of coordinates.
For example the domain of gray values can be 0-255,
whereas 0 – is black, 255- is white.
9.6 Gray-Scale Images
9.6.1 Dilation – Gray-Scale
Equation for gray-scale dilation is:
Morphological gradient
9.6.4 Some Applications of Gray-
Scale Morphology
Top-hat transformation
Denoted h, is defined as:
Cylindrical or parallelepiped structuring element function
with a flat top.
Useful for enhancing detail in the presence of shading.
Textural segmentation
The objective is to find the boundary between different
image regions based on their textural content.
Close the input image by using successively larger
structuring elements.
Then, single opening is preformed ,and finally a simple
threshold that yields the boundary between the textural
regions.
9.6.4 Some Applications of Gray-
Scale Morphology
Top-hat transformation
Textural segmentation
9.6.4 Some Applications of Gray-
Scale Morphology
Granulometry
Granulometry is a field that deals principally with
determining the size distribution of particles in an
image.
Because the particles are lighter than the background, we can
use a morphological approach to determine size distribution.
To construct at the end a histogram of it.
Based on the idea that opening operations of particular size
have the most effect on regions of the input image that
contain particles of similar size.
This type of processing is useful for describing regions
with a predominant particle-like character.
9.6.4 Some Applications of Gray-
Scale Morphology
Granulometry