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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by