Azzera filtri
Azzera filtri

Determine min & max intensity value from histogram.

5 visualizzazioni (ultimi 30 giorni)
Esther
Esther il 15 Ott 2012
How do you determine the minimum and maximum intensity value from looking at the histogram?

Risposte (1)

Walter Roberson
Walter Roberson il 15 Ott 2012
The minimum intensity value is somewhere in the range covered by the first bin with a non-zero count. The maximum intensity value is somewhere in the range covered by the last bin with a non-zero count. You cannot determine the precise values unless your inputs were quantized and your bins hold only a single quantum (e.g., distinct integers.)
  2 Commenti
Esther
Esther il 15 Ott 2012
what does non-zero count means?
Image Analyst
Image Analyst il 15 Ott 2012
[counts binValues] = hist(yourArray, numberOfBins);
minBinValue = find(counts>0, 1, 'first');
maxBinValue = find(counts>0, 1, 'last');

Accedi per commentare.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by