Determine min & max intensity value from histogram.
显示 更早的评论
How do you determine the minimum and maximum intensity value from looking at the histogram?
回答(1 个)
Walter Roberson
2012-10-15
0 个投票
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 个评论
Esther
2012-10-15
Image Analyst
2012-10-15
[counts binValues] = hist(yourArray, numberOfBins);
minBinValue = find(counts>0, 1, 'first');
maxBinValue = find(counts>0, 1, 'last');
类别
在 帮助中心 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!