adaptthresh
Adaptive image threshold using local first-order statistics
Description
calculates 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.
calculates a locally adaptive threshold using a sensitivity factor towards
thresholding more pixels as foreground.T
= adaptthresh(I
,sensitivity
)
calculates 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.