adaptthresh
R2026bAdaptive image threshold using local first-order statistics
Syntax
Description
calculates a locally adaptive threshold for 2-D grayscale image or 3-D grayscale
volume thresh = adaptthresh(I)I. The adaptthresh function chooses
the threshold based on the local mean intensity (first-order statistics) in the
neighborhood of each pixel.
You can use the locally adaptive threshold thresh with the
imbinarize function
to convert a grayscale image to a binary image.
calculates a locally adaptive threshold using a sensitivity factor towards
thresholding more pixels as foreground.thresh = adaptthresh(I,sensitivity)
calculates a locally adaptive threshold using name-value arguments to control
aspects of the thresholding.thresh = adaptthresh(___,Name=Value)
Examples
Input Arguments
Name-Value 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.




