I want to read histogram values

1 view (last 30 days)
uzmeed
uzmeed on 12 Jan 2018
Edited: Image Analyst on 12 Jan 2018
I want to read value of y at x=0 and 1 from the histogram . Please guide me. Here is the histogram:

Answers (1)

Zyx
Zyx on 12 Jan 2018
Edited: Zyx on 12 Jan 2018
>>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

Tags

Community Treasure Hunt

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

Start Hunting!