Professional Documents
Culture Documents
Image Processing
Morphological
Image
Processing_II
Dr. Faraz Junejo
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
Region filling
Thinning
Thickening
Convex Hull
Boundary Extraction
Extracting the boundary (or outline)
of an object is often extremely useful
es taken from Gonzalez & Woods, Digital Image Processing (2008))
Given a point
inside here, can
A hole may be defined as background weregion
fill surrounded
the whole by a
connected border of foreground pixels.
circle?
Algorithm is based on set dilation, complementation and intersection
for filling holes.
Region Filling (contd.)
The key equation for region filling is
es taken from Gonzalez & Woods, Digital Image Processing (2008)
X k ( X k 1 B ) A c
k 1,2,3.....
Where X0 is simply the starting point
inside the boundary, B is a simple
structuring element and Ac is the
complement of A
This equation is applied repeatedly until
Xk is equal to Xk-1
Finally the result is unioned with the
original boundary
Region Filling (contd.)
Forming an array X0 of 0s (the same size as the
array containing A), except the locations in X0
corresponding to the given point in each hole,
which we set to 1.
2. Xk = (Xk-1 + B) Ac k=1,2,3,
i 1
Iteratively applying the hit-or-miss transform to A with
the 4 masks.