calculation of first order histogram

3 visualizaciones (últimos 30 días)
kash
kash el 17 de Ag. de 2013
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

Respuesta aceptada

Image Analyst
Image Analyst el 18 de Ag. de 2013
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.

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by