thresPtile

[ XITE Reference Manual | XITE home ]

Name

thresPtile - threshold at specified percentage

Syntax

 #include <xite/threshold.h>

 int thresPtile( histogram h, float pTile );

Description

Calculates the threshold value needed to perform thresholding of the image behind the histogram <h> according to the <pTile> argument. This argument describes the percentage of the pixels that should be below the threshold. The actual thresholding is not performed, see the routine "threshold".

Restrictions

pTile should be in 0.0 .. 100.0

Return value

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

Author

Tor L|nnestad, BLAB, ifi, UiO

Id

$Id: thresPtile.c,v 1.19 1996/11/08 14:06:09 svein Exp $