Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 5cbb2d15b928e5cda7a6aeb04f3b1a17 > files > 58

python-imaging-devel-1.1.5-7.el5.i386.rpm

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
<title>The PIL.ImageStat Module</title>
<link rel='stylesheet' href='effbot.css' type='text/css' />
</head>
<body>
<h1>The PIL.ImageStat Module</h1>
<p>The <b>ImageStat</b> module calculates global statistics for an
image, or a region of an image.
</p><h2>Module Contents</h2>
<dl>
<dt><b>Stat(image, mask=None)</b> (class) [<a href='#PIL.ImageStat.Stat-class'>#</a>]</dt>
<dd>
<p>Calculate statistics for the given image.</p>
<p>For more information about this class, see <a href='#PIL.ImageStat.Stat-class'><i>The Stat Class</i></a>.</p>
</dd>
</dl>
<h2><a id='PIL.ImageStat.Stat-class' name='PIL.ImageStat.Stat-class'>The Stat Class</a></h2>
<dl>
<dt><b>Stat(image, mask=None)</b> (class) [<a href='#PIL.ImageStat.Stat-class'>#</a>]</dt>
<dd>
<p>Calculate statistics for the given image.  If a mask is included,
only the regions covered by that mask are included in the
statistics.</p>
</dd>
<dt><a id='PIL.ImageStat.Stat.__init__-method' name='PIL.ImageStat.Stat.__init__-method'><b>__init__(image, mask=None)</b></a> [<a href='#PIL.ImageStat.Stat.__init__-method'>#</a>]</dt>
<dd>
<p>Create a statistics object.</p>
<dl>
<dt><i>image</i></dt>
<dd>
A PIL image, or a precalculate histogram.</dd>
<dt><i>mask</i></dt>
<dd>
An optional mask.</dd>
</dl><br />
</dd>
</dl>
</body></html>