# adaptthresh

Adaptive image threshold using local first-order statistics

## Description

computes a
locally adaptive threshold for 2-D grayscale image or 3-D grayscale volume
`T`

= adaptthresh(`I`

)`I`

. The `adaptthresh`

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

can be used with
the `imbinarize`

function to convert the grayscale image to a
binary image.

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`

)

## Examples

## Input Arguments

## Output Arguments

## References

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

## Extended Capabilities

## See Also

**Introduced in R2016a**