thresRidCal

[ XITE Reference Manual | XITE home ]

Name

thresRidCal - threshold by the Ridler and Calvard method

Syntax

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

Description

thresRidCal calculates, and eventuall applies, the threshold needed to threshold inimage according to the method of Ridler and Calvard.

 lpv - output for low pixels (below thrs.) Default 0
 hpv - output for high pixels (above thrs.) Default 255
 inimage - input image
 outimage - eventual 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

 thresRidCal mona.img
 thresRidCal -h 1 mona.img monaThres.img

Id

$Id: thresRidCal.c,v 1.18 1996/11/08 14:06:10 svein Exp $