thn_zs

[ XITE Reference Manual | XITE home ]

Name

thn_zs - Thin a binary image. Algorithm by Zhang and Suen.

Syntax

 #include <xite/thin.h>

 int thn_zs( int verbose, IBAND inband,
    IBAND outband );

Description

Algorithm by Zhang and Suen.

Restrictions

inband and outband must have pixel type unsigned byte. inband is assumed to be binary valued, with foreground = 0, background = 255.

See also

thn_zs(1), thn_har(3), thn_lc(3)

References

[1] T. Y. Zhang and C. Y. Suen,
"A Fast Parallel Algorithm for Thinning Digital Patterns.", Comm. ACM, vol. 27, no. 3, pp 236-239, 1984.

[2] Rafael C. Gonzalez and Paul Wintz,
"Digital Image Processing.", 2. edition, 1987, pp. 398-402.

Return value

 0 - ok
 1 - Bad input pixel type
 2 - Bad output pixel type

Author

Řivind Due Trier, Ifi, UiO

Files

src/binarization/thn_zs.c

Id

$Id: thn_zs.c,v 1.13 1997/01/16 16:12:50 svein Exp $