[ XITE Reference Manual | XITE home ]
Name
bin_ksw, kapur_threshold - binarize a gray-scale band using
Kapur, Sahoo and Wong`s method
Syntax
#include <xite/binarize.h>
int bin_ksw( IBAND inband, IBAND outband );
int kapur_threshold( IBAND inband );
Description
The input band inband is binarized using
the method of Kapur, Sahoo and Wong, the result returned
in outband.
kapur_threshold finds the threshold used in bin_ksw.
Files
src/binarize/bin_ksw.c
See also
binarize(1)
References
-
Kapur, Sahoo & Wong
- "A new method for Gray-level picture
thresholding using the entropy of the histogram",
Computer Vision, Graphics, and Image Processing,
vol 29, pp 273-285, 1985.
Return value
For bin_ksw: 0 - ok
Restrictions
inband and outband must have pixel type unsigned byte.
Author
Oivind Due Trier
Examples
Id
$Id: bin_ksw.c,v 1.15 1997/01/14 15:46:52 svein Exp $