thresSigma

[ XITE Reference Manual | XITE home ]

Name

thresSigma - threshold at fraction of standard deviation

Syntax

 #include <xite/threshold.h>

 int thresxsigma(h, x)
 histogram h;
 double x;

 int thresSigma( histogram h, double x );

Description

thresSigma calculates 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)

The actual thresholding is not performed, see the routine "threshold".

Return value

The threshold value. Pixel values up to, and including, the return value, is below the threshold.

Author

Olav Borgli, BLAB, ifi, UiO

Id

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