Local Adaptive Thresholding
Updated 31 Mar 2016
ADAPTIVETHRESHOLD An adaptive thresholding algorithm that seperates the foreground from the background with nonuniform illumination.
bw=adaptivethreshold(IM,ws,C) outputs a binary image bw with the local threshold mean-C or median-C to the image IM.
ws is the local window size.
tm is 0 or 1, a switch between mean and median. tm=0 mean(default); tm=1 median.
Contributed by Guanglei Xiong (firstname.lastname@example.org) at Tsinghua University, Beijing, China.
For more information, please see
Guanglei Xiong (2023). Local Adaptive Thresholding (https://www.mathworks.com/matlabcentral/fileexchange/8647-local-adaptive-thresholding), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Design > Adaptive Filters >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.