Version (1.07 KB) by 2one
Otsu thresholding for image segmentation


Updated 17 Oct 2014

View License

% otsu.m
% Otsu image thresholding (for image thresholds > 0)
% Otsu, N., "A Threshold Selection Method from Gray-Level Histograms," IEEE Transactions on Systems, Man, and Cybernetics, Vol.
% 9, No. 1, 1979, pp. 62-66.
% Similar to MATLAB function graythresh.m
% input: image (IM)
% output: binary image (IM_OTSU) and optimal threshold value

Cite As

2one (2023). otsu.m.zip (https://www.mathworks.com/matlabcentral/fileexchange/47103-otsu-m-zip), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
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