Global Threshold computation using Otsu's Method
Computes the global image threshold using Otsu's method by minimizing the
inter-class variance.
Inputs:
histogramCounts : is the histogram data of the image, that can be calculated
using `imhist` function.
total: is the total number of pixels that can be counted using the
`numel` function.
Output:
ll : is the level of the global threshold in [0 1]
Example:
consider the grayscale image is Ig
>> otsu(imhist(Ig),numel(Ig))
>> 04414
引用
Reza Ahmadzadeh (2024). Global Threshold computation using Otsu's Method (https://www.mathworks.com/matlabcentral/fileexchange/52437-global-threshold-computation-using-otsu-s-method), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |