How to I get a threshold value from looking at histogram
古いコメントを表示
I need to get a threshold value not by looking at the graph I was told there is a way to calculate the threshold value from the histogram, Can someone help me
2 件のコメント
Youssef Khmou
2015 年 3 月 29 日
what is the purpose of this threshold ?
Chok Chuan
2015 年 3 月 29 日
編集済み: Chok Chuan
2015 年 3 月 29 日
回答 (1 件)
Youssef Khmou
2015 年 3 月 29 日
Otsu's method exists as built in function with name graythresh, here is an example taken from Mathworks help page :
I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
there might be other techniques to choose an adequate threshold.
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!