I want to read histogram values

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일

0 개 추천

>>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

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

태그

질문:

2018년 1월 12일

편집:

2018년 1월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by