Getting values of the histogram without actually plotting it
    17 ビュー (過去 30 日間)
  
       古いコメントを表示
    

Hello, I am working on automatically adjusting the threshold for an image. How do I select a particular percentage of the peak of the histogram for thresholding without actually plotting the values. The image below was plotted using histogram(Image).
0 件のコメント
回答 (1 件)
  the cyclist
      
      
 2018 年 8 月 30 日
        3 件のコメント
  the cyclist
      
      
 2018 年 8 月 31 日
				The histcounts command
N = histcounts(X);
outputs the bin counts, without plotting them.
You could find the maximum value of this
maxN = max(N);
and then set your threshold as some percentage of this maximum value.
参考
カテゴリ
				Help Center および File Exchange で Data Distribution Plots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

