How to get the probability of the intensity level of an image ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Image Analyst
2015-5-2
[pixelCounts, grayLevels] = imhist(grayImage);
2 个评论
Image Analyst
2015-5-2
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!