How the Peak value of the image histogram can be obtaind?

1 view (last 30 days)
How the Peak value of the image histogram can be obtaind?

Accepted Answer

Image Analyst
Image Analyst on 27 May 2014
[pixelCounts, grayLevels] = imhist(grayImage);
[maxCount, indexOfMax] = max(pixelCounts);
grayLevelAtMax = grayLevels(indexOfMax);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!