thresMinErr

[ XITE Reference Manual | XITE home ]

Name

thresMinErr - minimum error threshold.

Syntax

 thresMinErr [<switches>] <inimage> [<outimage>]

Description

thresMinErr calculates, and eventually applies, the threshold value needed to threshold the image according to the minimum error thresholding metods as described in Kittler & Illingworth and Gonzalez & Wintz.

 -iter      - use iterative methode
              (thresMinErrIter)
 -crit      - use criterion function method
              (thresMinErrCrit)
 -eqVar     - use equal variances method
              (thresMinErrEqVar)

 -mean      - initial threshold is mean (default)
 -t <tinit> - initial threshold 0<=tinit<=255
 -ridcal    - initial threshold = thresRidCal(h)

 -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.

Reference

 J. Kittler & J. Illingworth: "Minimum Error Thresholding"
 Pattern Recognition, Vol 19, nr 1. 1986, pp. 41-47.
 Gonzales, Rafael C & Wintz, Paul:
 "Digital Image Processing"
 Addison-Wesley, 1977.
 Q.-Z. Ye & P.-E. Danielsson:
 "On Minimum Error Thresholding and Its Implementations"
 Pattern Recognition Letters 7,
 1988, pp. 201-206.

Restrictions

Only UNS_BYTE pixels are supported

Author

Olav Borgli, BLAB, ifi, UiO

Examples

 thresMinErr -iter -mean mona.img monaThres.img
 thresMinErr -iter mona.img monaThres.img
 thresMinErr -crit mona.img monaThres.img
 thresMinErr -eqVar -t 112 mona.img

Id

$Id: thresMinErr.c,v 1.25 1997/03/17 13:45:07 svein Exp $