Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Adaptive image threshold using local first-order statistics

`T = adaptthresh(I)`

`T = adaptthresh(I,sensitivity)`

`T = adaptthresh(___,Name,Value)`

`T = adaptthresh(V,___,Name,Value)`

computes a
locally adaptive threshold that can be used with the `T`

= adaptthresh(`I`

)`imbinarize`

function to convert an intensity image to a binary image. The result,
`T`

, is a matrix the same size as `I`

containing normalized intensity values in the range `[0,1]`

.
`adaptthresh`

chooses the threshold based on the local mean
intensity (first-order statistics) in the neighborhood of each pixel.

computes a locally adaptive threshold with sensitivity factor specified by
`T`

= adaptthresh(`I`

,`sensitivity`

)`sensitivity`

. `sensitivity`

is a scalar
in the range `[0,1]`

that indicates sensitivity towards
thresholding more pixels as foreground.

computes
a locally adaptive threshold using name-value pairs to control aspects
of the thresholding.`T`

= adaptthresh(___,`Name,Value`

)

computes a locally adaptive threshold for the 3-D input volume
`T`

= adaptthresh(`V`

,___,`Name,Value`

)`V`

.

[1] Bradley, D., G. Roth,
"Adapting Thresholding Using the Integral Image," *Journal of Graphics
Tools*. Vol. 12, No. 2, 2007, pp.13-21.