MAN page from Mandrake Other XITE-3.3-3.i386.rpm
3
Section: Misc. Reference Manual Pages (16 Mar 1998)
Index
NAME
bin_be - binarize a gray-scale band usingBernsen`s method
SYNTAX
#include <
xite/binarize.h>
int bin_be( int region_size,
int contrast_limit, int set_doubt_to_low,
IBAND inband, IBAND outband );
DESCRIPTION
The input band
inbandis binarized usingthe method of Bernsen, the result returnedin
outband.For each pixel, the threshold
T(x,y) = (Z_low + Z_high)/2
is used, where Z_low and Z_high are the lowest and highestgray level pixel values in a square neighborhood of size(region_sizex region_size)about the pixel (x,y).However, if the contrast measure
C(x,y) = Z_high - Z_low < contrast_limit
the pixel is set to 255 if set_doubt_to_low== 0, and to 0if set_doubt_to_low>= 1.
FILES
src/binarize/bin_be.c
SEE ALSO
binarize(1),
thresBernsen(1),
thresBernsen(3)
REFERENCES
- .I John Bernsen
- "Dynamic thresholding of grey-level images",Proc. 8th International Conference on PatternRecognition (ICPR8), pp 1251-1255, Paris, France,October 1986.
RETURN VALUE
0 : ok
1 : Bad input pixel type
2 : Bad output pixel type
RESTRICTIONS
inbandand
outbandmust have pixel type unsigned byte.
AUTHOR
Oivind Due Trier
EXAMPLES
ID
$Id: bin_be.c,v 1.15 1997/01/14 15:46:50 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- FILES
- SEE ALSO
- REFERENCES
- RETURN VALUE
- RESTRICTIONS
- AUTHOR
- EXAMPLES
- ID
This document was created byman2html,using the manual pages.