thresPtile
[ XITE Reference Manual | XITE home ]
Name
thresPtile - threshold at specified percentage
Syntax
thresPtile [-l <lpv>] [-h <hpv>]
<inimage> [<outimage>] <pTile>
Description
thresPtile calculates, and eventually applies,
the threshold needed to threshold the image
according to the pTile argument, pTile percent
of the pixels will be below the threshold, and
(100 - <pTile>) percent will be above.
lpv - output for low pixels (below thrs.) Default 0
hpv - output for high pixels (above thrs.) Default 255
inimage - input image
outimage - output image
pTile - percent of pixels below or at threshold
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
If (pTile < 0.0) pTile is set to 0.0
If (pTile > 100.0) pTile is set to 100.0
Only UNS_BYTE pixels are supported
Author
Tor L|nnestad, BLAB, ifi, UiO
Examples
thresPtile mona.img 65
thresPtile -h 1 mona.img monaThres.img 73.5
Id
$Id: thresPtile.c,v 1.19 1996/11/08 14:06:09 svein Exp $