calculation of first order histogram

조회 수: 4 (최근 30일)
kash
kash 2013년 8월 17일
how to find first order histogram by
The first-order histogram P(I) is defined as: number of pixels with gray level I/total number of pixels in the region
from this i have to find mean ,standard deviation etc,
i can find those ,but plz tell how to calculate first order histogram

채택된 답변

Image Analyst
Image Analyst 2013년 8월 18일
I know it sounds obvious, but did you try hist()?
[counts, binCenters] = hist(data);
P = counts/sum(counts);
meanValue = (counts .* binCenters) / sum(counts);
I presume you know how to get SD from the histogram.

추가 답변 (0개)

카테고리

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