minError: Minimum error thresholding

Description Usage Arguments Details Value Author(s) References Examples

Description

Find a global threshold for a grayscale image using the minimum error thresholding method.

Usage

1

Arguments

h

histogram

Details

Functions based on matlab function by 2004 Antti Niemist&#246 http://www.dentistry.bham.ac.uk/landinig/software/autothreshold/autothreshold.html

Value

threshold

Author(s)

Hans Ole Orka hans.ole.orka@gmail.org

References

J. Kittler and J. Illingworth, "Minimum error thresholding," Pattern Recognition, vol. 19, pp. 41-47, 1986.

C. A. Glasbey, "An analysis of histogram-based thresholding algorithms,"CVGIP: Graphical Models and Image Processing, vol. 55, pp. 532-537, 1993.

Examples

1
2
3
4
5
x <- c(rnorm(100,10),rnorm(50,20))
h <- hist(x)
T <- minError(h)
hist(x)
abline(v=T)

hansoleorka/myR documentation built on May 17, 2019, 2:29 p.m.