% 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 (2024). 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 LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
Find more on Image Thresholding in Help Center and MATLAB Answers
Tags
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.