thresSigma

[ XITE Reference Manual | XITE home ]

Name

thresSigma - threshold at fraction of standard deviation

Syntax

 thresSigma [-x <x>] [-l <lpv>] [-h <hpv>]
     <inimage> [<outimage>]

Description

thresSigma calculates, and eventually applies, the threshold value by finding the mean (mu) and the standard deviation (sigma) of the image, and then finding the threshold by the formula:

t = mu + (x * sigma)

 -x <x>     - fraction of standard deviation.
              Default 0
 -l <lpv>   - output for low pixels (below thrs.).
              Default 0
 -h <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.

Restrictions

Only UNS_BYTE pixels are supported

Author

Olav Borgli, BLAB, ifi, UiO

Examples

 thresSigma -x -2.5 mona.img monaThres.img

Id

$Id: thresSigma.c,v 1.20 1996/11/08 14:06:11 svein Exp $