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!