MATLAB: How to obtain value from histogram

histogramimage analysisimage processingImage Processing Toolbox

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

Best Answer

You only need to ask imhist to output those data:
[counts,binLocations] = imhist(I)