thresMl
[ XITE Reference Manual | XITE home ]
Name
thresMl - multi level supervised thresholding
Syntax
thresMl [-mean] [-med] [-scale <scale>] \\
<inimage> <outimage> \\
<thres1> [<thres2> [<thres3>......]
Description
Performes multi level thresholding at the specified
thresholds. You may specify one or more thresholds.
You should only use one of the options.
Options
-
-mean
- Output is mean of pixels between two thresholds.
-
-med
- Output is median of pixels between two thresholds.
-
-scale scale
- Output is threshold-level * scale. EX: pixels
between 3rd and 4th threshold get value 3*scale.
If scale is too large, it is adjusted down to make 255
the maximum output value. Default scale is too large.
See also
thresMlAppScale(3), thresMlAppMean(3), thresMlAppMedian(3),
thresMlApply(3), histoCentroid(3), thresMlCentroid(3),
thresMlCentroid(1), mkComCur(3), thresMlComCur(3),
thresMlComCur(1), thresMlReddi(3), thresMlReddi(1),
thresMlWaHa(3), thresMlWaHa(1)
Return value
0 => ok
2 => Bad number of arguments
Author
Tor Lønnestad, BLAB, Ifi, UiO
Examples
thresMl -med mona.img monaThMl.img 60 90 150
thresMl mona.img monaThMl.img 60 90 150
thresMl -scale 50 mona.img monaThMl.img 60 90 150
Id
$Id: thresMl.c,v 1.17 1997/01/14 13:03:09 svein Exp $