How to get the probability of the intensity level of an image ?

1 回表示 (過去 30 日間)
Sahar Magdy
Sahar Magdy 2015 年 5 月 2 日
コメント済み: Image Analyst 2015 年 5 月 2 日
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

回答 (1 件)

Image Analyst
Image Analyst 2015 年 5 月 2 日
[pixelCounts, grayLevels] = imhist(grayImage);
  2 件のコメント
Sahar Magdy
Sahar Magdy 2015 年 5 月 2 日
Won't that get me the number of pixels in each grey level ?
Image Analyst
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 ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by