calculation of first order histogram

4 次查看(过去 30 天)
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