bin_pa

[ XITE Reference Manual | XITE home ]

Name

bin_pa - binarize a gray-scale band using Parker`s method

Syntax

 #include <xite/binarize.h>

 int bin_pa( IBAND inband, IBAND outband,
    int region_size, double k, double mean_lim,
    double sdev_lim, int abs_value );

Description

The input band inband is binarized using the method of Parker. The result is returned in outband.

Restrictions

inband and outband must have pixel type unsigned byte.

See also

binarize(1)

References

J.R. Parker
"Gray level thresholding in badly illuminated images", IEEE Transactions on Pattern Analysis and Machine Intelligence, vol T-PAMI 13, no 8, pp 813-819, 1991.

Return value

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

Author

Řivind Due Trier

Id

$Id: bin_pa.c,v 1.15 1997/01/14 15:46:56 svein Exp $