The Purpose: To find medial axis of a 2D shape, the set of points where the ``fire lines'' meet.
The Algorithm:
for each
, do
,
here
is the four closest neighbors of
.
The full 2D shape can be recostructed from the skeleton pixels as the
union of all circules with center at and radius of
.