FUNCTION REFERENCE
otsuthresh
Otsu threshold of a histogram.
Otsu threshold of a histogram.
Syntax
T = otsuthresh(counts)counts is a vector of nonnegative bin counts (for example from imhist). T is Otsu's threshold as a normalised bin position in [0, 1]: (k - 1)/(n - 1) where k is the bin (1-based) after which the between-class variance is largest, averaging the bins when several tie.
Example
otsuthresh([2 0 0 2]) % 1/3Example
otsuthresh(imhist(uint8([10 10 200 200])))Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.