I want to read histogram values

1 回表示 (過去 30 日間)
uzmeed
uzmeed 2018 年 1 月 12 日
編集済み: Image Analyst 2018 年 1 月 12 日
I want to read value of y at x=0 and 1 from the histogram . Please guide me. Here is the histogram:

回答 (1 件)

Zyx
Zyx 2018 年 1 月 12 日
編集済み: Zyx 2018 年 1 月 12 日
>>I=imhist(your_image); %Save the histogram of the image in the variable I
>>I(1) %You get a value y for x = 0 because your image is binary and you have only 2 value in variable I
>>I(2) %You get a value y for x = 1

カテゴリ

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