Getting values of the histogram without actually plotting it
    19 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    

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 Kommentare
Antworten (1)
  the cyclist
      
      
 am 30 Aug. 2018
        3 Kommentare
  the cyclist
      
      
 am 31 Aug. 2018
				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.
Siehe auch
Kategorien
				Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

