Determine min & max intensity value from histogram.

조회 수: 1 (최근 30일)
Esther
Esther 2012년 10월 15일
How do you determine the minimum and maximum intensity value from looking at the histogram?

답변 (1개)

Walter Roberson
Walter Roberson 2012년 10월 15일
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
Esther 2012년 10월 15일
what does non-zero count means?
Image Analyst
Image Analyst 2012년 10월 15일
[counts binValues] = hist(yourArray, numberOfBins);
minBinValue = find(counts>0, 1, 'first');
maxBinValue = find(counts>0, 1, 'last');

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by