remove_small

[ XITE Reference Manual | XITE home ]

Name

remove_small - remove small print objects in binary image

Syntax

 #include <xite/binarize.h>

 int remove_small( IBAND inband, IBAND outband,
    int size_threshold );

Description

All print (black) objects in a binary image are traversed, and if the size is smaller than size_threshold, then the object is removed from the image.

Restrictions

inband and outband must have pixel type unsigned byte.

Return value

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

Author

Řivind Due Trier

Files

src/binarize/remove_small.c

Id

$Id: remove_small.c,v 1.10 1997/01/29 10:37:43 svein Exp $