Multilevel image thresholds using Otsu's method

returns
the single threshold value `thresh`

= multithresh(`A`

)`thresh`

computed for
image `A`

using Otsu's method. You can use `thresh`

as
an input argument to `imquantize`

to
convert an image into a two-level image.

returns `thresh`

= multithresh(`A`

,`N`

)`thresh`

a
1-by-N vector containing `N`

threshold values using
Otsu's method. You can use `thresh`

as an
input argument to `imquantize`

to
convert image `A`

into an image with `N + 1`

discrete levels.

`[`

returns `thresh`

,`metric`

]
= multithresh(___)`metric`

,
a measure of the effectiveness of the computed thresholds. `metric`

is
in the range `[0 1]`

and a higher value indicates
greater effectiveness of the thresholds in separating the input image
into `N + 1`

regions
based on Otsu's objective criterion.

Code Generation support: Yes.

MATLAB Function Block support: Yes.

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

`graythresh`

| `im2bw`

| `imquantize`

| `rgb2ind`

Was this topic helpful?