Page 272 -
P. 272
246 Chapter 6 ■ Thinning
{
if (C && ! (N &&
((E && !NE && !SW && (!W || !S)) ||
(W && !NW && !SE && (!E || !S)) )) )
tmp->data[i] [j] = 0;/* Survives */
.else
tmp->data[i] [j] = 1;
}else if (dir == SOUTH)
{
if (C && ! (S &&
( (E && !SE && !NW && (!W || !N)) ||
(W && !SW && !NE && (!E || !N)) )) )
tmp->data[i] [j] = 0;/ * Survives * /
else
tmp->data[i] [j] = 1;
}
}
}
6.8 Website Files
medialaxis.exe Blum’s medial axis transform
stentiford.exe Stentiford’s thinning method
choi.c Choi et al. thinning
contour1.c Pavlidis contour thinning
contour2.c Pavlidis contour thinning, with pre- and post-processing
medialaxis.c Blum medial axis
stentiford.c Stentiford thinning
zhangsuen.c Basic Zhang-Suen
zhangsuenbest.c Source code, Zhang-Suen with pre- and post-processing
5.pbm Test image, digit 5
5r.pbm Test image, digit 5, level reversed from 5.pbm
B.pbm Test image, letter B
H.pbm Test image, letter H
T.pbm Test image, letter T
V.pbm Test image, letter V
X.pbm Test image, letter X