mirror of
https://github.com/jlengrand/Tippy.git
synced 2026-03-10 08:51:16 +00:00
Creates all necessary files. Instructions are taken from here : http://guide.python-distribute.org/creation.html Some steps are still to be performed. Reported-by: Julien Lengrand-Lambert Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
81 lines
5.3 KiB
HTML
81 lines
5.3 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module tippy.statistics</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="tippy.html"><font color="#ffffff">tippy</font></a>.statistics</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jlengrand/git/Tippy/tippy/statistics.py">/home/jlengrand/git/Tippy/tippy/statistics.py</a></font></td></tr></table>
|
|
<p><tt>Contains functions related to statistics processing. <br>
|
|
<br>
|
|
Created on Dec 11, 2011<br>
|
|
<br>
|
|
@author: Julien Lengrand-Lambert<br>
|
|
@email: julien@lengrand.fr</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cv.html">cv</a><br>
|
|
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="tippy.statistics.html#Histogram">Histogram</a>
|
|
</font></dt></dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="Histogram">class <strong>Histogram</strong></a></font></td></tr>
|
|
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
<td colspan=2><tt>This class is designed to contain an openCV class plus some more information<br>
|
|
to ease further operations.<br>
|
|
<br>
|
|
NOTE : Supports only 8 bits images for now. <br>
|
|
More should be added soon.<br> </tt></td></tr>
|
|
<tr><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="Histogram-__init__"><strong>__init__</strong></a>(self, img, bin_fact<font color="#909090">=8L</font>, min_range<font color="#909090">=0</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="Histogram-channel_to_image"><strong>channel_to_image</strong></a>(self, chan, scale_x<font color="#909090">=3</font>, scale_y<font color="#909090">=3</font>, y_range<font color="#909090">=64</font>)</dt><dd><tt>Creates an iplimage displaying histogram results after its computation</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Histogram-compute_histogram"><strong>compute_histogram</strong></a>(self, img, bin_fact<font color="#909090">=8L</font>, min_range<font color="#909090">=0</font>)</dt><dd><tt>Creates the histogram of the input image<br>
|
|
<br>
|
|
Returns a Tippy histogram, with one item by channel of input image.<br>
|
|
The number of bins is 2^bin_fact (256 by default)<br>
|
|
min_range is the value of the lowest bin<br>
|
|
max_range is automatically calculated using the input image depth. <br>
|
|
max_range = (2^img_depth)<br>
|
|
<br>
|
|
NOTE : Supports only 8 bits images for now. <br>
|
|
More should be added soon.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Histogram-to_images"><strong>to_images</strong></a>(self, scale_x<font color="#909090">=3</font>, scale_y<font color="#909090">=3</font>, y_range<font color="#909090">=64</font>)</dt><dd><tt>Creates a graphical representation of an histogram.<br>
|
|
Outputs a list of nChannels iplimages, one for each channel of the <br>
|
|
histogram. <br>
|
|
The images should have the same depth as the image used to create the <br>
|
|
histogram.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="Histogram-to_tables"><strong>to_tables</strong></a>(self)</dt><dd><tt>Transforms an histogram into a list of values.<br>
|
|
This way, it is easier to process for calculations.<br>
|
|
<br>
|
|
Returns a list of nChannels items.<br>
|
|
<br>
|
|
NOTE : Supports only 8 bits images for now. <br>
|
|
More should be added soon.</tt></dd></dl>
|
|
|
|
</td></tr></table></td></tr></table>
|
|
</body></html> |