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
and the three rotations of each by
For any i between 1 and 8, and any binary image X, define
where
The thinning of an image A is obtained by cyclically iterating until convergence: