thresLloyd

[ XITE Reference Manual | XITE home ]

Name

thresLloyd - threshold by the method of Lloyd

Syntax

 thresLloyd [-l <lpv>] [-h <hpv>]
   <inimage> [<outimage>]

Description

thresLloyd calculates, and eventually applies, the threshold value needed to threshold the image according to Lloyds method.

 lpv - output for low pixels (below thrs.) Default 0
 hpv - output for high pixels (above thrs.) Default 255
 inimage - input image
 outimage - output image

If an output image is given, the input image is thresholded and written to the output image. Otherwise the threshold value is only reported to standard output.

Files

See also

Diagnostics

Restrictions

Only UNS_BYTE pixels are supported

Author

Tor L|nnestad, BLAB, ifi, UiO

Examples

 thresLloyd mona.img
 thresLloyd -h 1 mona.img monaThres.img

Id

$Id: thresLloyd.c,v 1.17 1996/11/08 14:06:06 svein Exp $