Given a numeric vector with the pixel's intensities, returns the threshold
value based on Otsu's method, which minimizes the combined intra-class
variance
Usage
otsu(values)
Value
A double (threshold value).
Arguments
values
A numeric vector with the pixel values.
References
Otsu, N. 1979. Threshold selection method from gray-level
histograms. IEEE Trans Syst Man Cybern SMC-9(1): 62–66. doi:
tools:::Rd_expr_doi("10.1109/tsmc.1979.4310076")