Automatic Thresholding

Version 1.0.0.0 (2.43 KB) by zephyr
Provides automatic thresholding based on the ISODATA method.
18.7K Downloads
Updated 31 Mar 2016

View License

This iterative technique for choosing a threshold was developed by Ridler and Calvard .The histogram is initially segmented into two parts using a starting threshold value such as 0 = 2B-1, half the maximum dynamic range.
The sample mean (mf,0) of the gray values associated with the foreground pixels and the sample mean (mb,0) of the gray values associated with the background pixels are computed. A new threshold value 1 is now computed as the average of these two sample means. The process is repeated, based upon the new threshold, until the threshold value does not change any more.

Reference :T.W. Ridler, S. Calvard, Picture thresholding using an iterative selection method, IEEE Trans. System, Man and Cybernetics, SMC-8 (1978) 630-632.

Cite As

zephyr (2024). Automatic Thresholding (https://www.mathworks.com/matlabcentral/fileexchange/3195-automatic-thresholding), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

BSD license