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.
Let
E=Z2
C1=\{(0,0),(-1,-1),(0,-1),(1,-1)\}
D1=\{(-1,1),(0,1),(1,1)\}
C2=\{(-1,0),(0,0),(-1,-1),(0,-1)\}
D2=\{(0,1),(1,1),(1,0)\}
90o
180o
270o
B1,\ldots,B8
For any i between 1 and 8, and any binary image X, define
X ⊗ Bi=X\setminus(X\odotBi)
\setminus
\odot
The thinning of an image A is obtained by cyclically iterating until convergence:
A ⊗ B1 ⊗ B2 ⊗ \ldots ⊗ B8 ⊗ B1 ⊗ B2 ⊗ \ldots
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
\odot
Bi
X