How to get the probability of the intensity level of an image ?
3 views (last 30 days)
Show older comments
I have a grey scale image that I want to get the probability of every intensity level, I know it mathematically but i have no idea how to do it on Matlab please help !!1
0 Comments
Answers (1)
Image Analyst
on 2 May 2015
[pixelCounts, grayLevels] = imhist(grayImage);
2 Comments
Image Analyst
on 2 May 2015
Yes, of course. And how do you think you'd get the probability? Divide by something? Like what if you divided by the number of pixels in the image? What is the formula that you "know mathematically" if it's not what I described?
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!