otsuthresh
R2026bGlobal threshold from histogram counts using Otsu's method
Description
computes a global threshold thresh = otsuthresh(counts)thresh from histogram counts,
counts, using Otsu's method [1]. Otsu's method chooses a
threshold that minimizes the intraclass variance of the thresholded black and white
pixels.
You can use the global threshold thresh with the imbinarize function
to convert a grayscale image to a binary image.
Examples
Input Arguments
Output Arguments
References
[1] Otsu, N., "A Threshold Selection Method from Gray-Level Histograms." IEEE Transactions on Systems, Man, and Cybernetics. Vol. 9, No. 1, 1979, pp. 62–66.

