Thinning (morphology) explained

Thinning is the transformation of a digital image into a simplified, but topologically equivalent image. It is a type of topological skeleton, but computed using mathematical morphology operators.

Example

Let

E=Z2

, and consider the eight composite structuring elements, composed by:

C1=\{(0,0),(-1,-1),(0,-1),(1,-1)\}

and

D1=\{(-1,1),(0,1),(1,1)\}

,

C2=\{(-1,0),(0,0),(-1,-1),(0,-1)\}

and

D2=\{(0,1),(1,1),(1,0)\}

and the three rotations of each by

90o

,

180o

, and

270o

. The corresponding composite structuring elements are denoted

B1,\ldots,B8

.

For any i between 1 and 8, and any binary image X, define

XBi=X\setminus(X\odotBi)

,where

\setminus

denotes the set-theoretical difference and

\odot

denotes the hit-or-miss transform.

The thinning of an image A is obtained by cyclically iterating until convergence:

AB1 ⊗ B2 ⊗ \ldotsB8 ⊗ B1 ⊗ B2 ⊗ \ldots

.

Thickening

Thickening is the dual of thinning that is used to grow selected regions of foreground pixels. In most cases in image processing thickening is performed by thinning the background [1]

thicken(X,Bi)=X\cup(X\odotBi)

where

\cup

denotes the set-theoretical difference and

\odot

denotes the hit-or-miss transform, and

Bi

is the structural element and

X

is the image being operated on.

Notes and References

  1. Book: Gonzalez, Rafael C.. Digital image processing. Woods, Richard E. (Richard Eugene), 1954-. 2002. 0-201-18075-8. 2nd. Upper Saddle River, N.J.. 48944550.