フィルターのクリア

How to obtain value from histogram?

1 回表示 (過去 30 日間)
nurul hafizah
nurul hafizah 2015 年 5 月 4 日
コメント済み: Star Strider 2015 年 5 月 5 日
I am using imhist to create histogram from an image. Now I want to know the value of each bar from Y-axis in the histogram. Can I know how to do that??

採用された回答

Star Strider
Star Strider 2015 年 5 月 4 日
You only need to ask imhist to output those data:
[counts,binLocations] = imhist(I)
  4 件のコメント
nurul hafizah
nurul hafizah 2015 年 5 月 5 日
do you know how to calculate mean using counts value?
Star Strider
Star Strider 2015 年 5 月 5 日
You need both ‘counts’ and ‘binLocations’:
image_mean = sum(counts.*binLocations)/sum(counts);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by