mirror of
https://github.com/jlengrand/Tippy.git
synced 2026-03-10 08:51:16 +00:00
43 lines
3.2 KiB
HTML
43 lines
3.2 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module tippy.segmentations</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>.segmentations</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/segmentations.py">/home/jlengrand/git/Tippy/tippy/segmentations.py</a></font></td></tr></table>
|
|
<p><tt>This method contains all functions segmentation related.<br>
|
|
<br>
|
|
Created on Nov 26, 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="numpy.html">numpy</a><br>
|
|
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</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="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-simple_region_growing"><strong>simple_region_growing</strong></a>(img, seed, threshold<font color="#909090">=1</font>, conn<font color="#909090">=4</font>)</dt><dd><tt>A (very) simple implementation of region growing.<br>
|
|
Extracts a region of the input image depending on a start position and a stop condition. <br>
|
|
The input should be a single channel 8 bits image and the seed a pixel position (x, y).<br>
|
|
The threshold corresponds to the difference between outside pixel intensity and mean intensity of region.<br>
|
|
In case no new pixel is found, the growing stops. <br>
|
|
The connectivity can be set to 4 or 8. 4-connectivity is taken by default, and 8-connectiviy requires most computations.<br>
|
|
Outputs a single channel 8 bits binary (0 or 255) image. Extracted region is highlighted in white.</tt></dd></dl>
|
|
</td></tr></table>
|
|
</body></html> |