You are on page 1of 14

Digital Image Processing Morphological Algorithms

Sudeep Thepade

Overview

Extracting image components that are useful in the representation and description of shape. Well consider:

Boundary extraction Region filling Thinning and Thickening Skeletonization

Boundary Extraction

Denote the boundary of set A by A Step1: eroding A by the structuring element B Step2: taking the difference between A and its erosion.

A A AB
3

Another Illustration

Using B as the structuring element, so boundary is 1 pixel thick.


4

Region Filling

A is a set containing a subset whose elements are 8-connected boundary points of a region. Goal: fill the entire region with 1s.

Region Filling (cond)

X k X k 1 B Ac
Terminate when Xk=Xk-1

Final
6

Some Remarks

The dilation process would fill the entire area if left unchecked. Ac limits the result to inside the region of interest. Conditional dilation Applicable to any finite number of such subsets, assuming that a point inside each boundary is given.

Thinning and Thickening

Thinning
A

A separate algorithm for Thickening is seldom used in practice. Instead, the usual procedure is to thin the background of the set in question and then complement the result. In other words, To Thicken a set A , we form C=Ac, thin C and then form Cc

10

Skeletonization

We have seen some algorithms for skeletonization when discussing topology. Review: skeleton of a binary object is a collection of lines and curves that describe the size and shape of the object. Different algorithms and many possible different skeletons of the same object. Here we use a combination erosion and opening operations
11

(cond)
Formulation:
S A S k A
K k 0

with Sk A AkB AkB B where AkB ... ABB... B


k time

The big K is the last iterative step before A erodes to an empty set.
12

Skeletonization: Demo

Final skeleton

13

14

You might also like