Differences between revisions 3 and 4
Revision 3 as of 2008-12-08 12:29:33
Size: 688
Editor: anonymous
Comment:
Revision 4 as of 2008-12-08 12:32:36
Size: 769
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
{{{#!latex
$\sum_{q=0}^255f_q=1$
}}}
Line 29: Line 26:

The expression {{{normed=True}}} is used for the normalization of the PDF.
{{{#!latex
$\sum_{q=0}^{255}f_q=1$
}}}

Image statistics

The image is characterised by a probability density function (PDF). The PDF f describes the probability of the occurrence of a discrete grey level q in the range of grey levels Q.

latex error! exitcode was 2 (signal 0), transscript follows:

Example

landsat_b80.png

The following code calculates the PDF pdf for a byte image in the intervall [0,255]

   1 h=histogram(img,bins=256,range=[0,255],normed=True)
   2 pdf,x=h[0],h[1]

The expression normed=True is used for the normalization of the PDF.

latex error! exitcode was 2 (signal 0), transscript follows:

LehreWiki: Python/Lesson6 (last edited 2008-12-08 13:15:56 by anonymous)