bin_ot
[ XITE Reference Manual | XITE home ]
Name
bin_ot, otsu_threshold - binarize a gray-scale band using
Otsu`s method
Syntax
#include <xite/binarize.h>
int bin_ot( IBAND inband, IBAND outband );
int otsu_threshold( IBAND inband, double* mu_0,
double* mu_1, double* mu );
Description
The input band inband is binarized by bin_ot using
the method of Otsu. The result is returned in outband.
otsu_threshold returns Otsu`s threshold for inband.
The total mean mu and the two cluster means mu1
and mu2 are calculated.
Restrictions
inband and outband must have pixel type unsigned byte.
See also
binarize(1)
References
-
Nobuyuki Otsu
- "A threshold selection method from gray-level histograms",
IEEE transactions on Systems, man and cybernetics,
vol T-SMC 9, no 1, pp 62-66, 1979.
Return value
bin_ot : 0 : OK
1 : Bad input pixel type
2 : Bad output pixel type
otsu_threshold : Otsu`s threshold
Files
src/binarize/bin_ot.c
Author
Řivind Due Trier
Id
$Id: bin_ot.c,v 1.17 1997/01/14 15:46:55 svein Exp $