Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4a71d9984febeb5a206904a5a379841a > files > 730

python-morph-0.8-7mdv2010.0.noarch.rpm

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
    <title>mmsebox</title>
    <link href="../tbxdok.css" rel="stylesheet">
  </head>
  <body>
    <table class="topNav">
      <tr>
        <td class="index">
                  [<a href="../morph/mmimg2se.html"><tt>mmimg2se</tt></a>]
              
                  [<a href="index.html">Up</a>]
                  
                  [<a href="../morph/mmsecross.html"><tt>mmsecross</tt></a>]
              </td>
        <td class="title">Structuring Elements</td>
      </tr>
    </table>
    <h1>mmsebox
      <br>
      <span class="subtitle">Create a box structuring element.
</span>
    </h1>
    <div class="synopsis">
      <H2>Synopsis</H2>
      <div class="H2">
        <div class="prototype">B = 
          <span class="fun">mmsebox</span>(
                  
          <span class="par">r</span> = 1
                  )
        </div>
        <p>Implemented in 
          <b>Python.</b>
        </p>
        <div class="input">
          <H3>Input</H3>
          <div class="H3">
            <table class="deflist">
              <tbody valign="baseline">
                <tr>
                  <td class="term"><span class="par">r</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmDouble.html">Double</a></span>      Non-negative integer.
                          <p>Radius.</p><p>Default: 
                      <code>1</code>
                    </p></td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <div class="output">
          <H3>Output</H3>
          <div class="H3">
            <table class="deflist">
              <tbody valign="baseline">
                <tr>
                  <td class="term"><span class="par">B</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmSe.html">Structuring Element</a></span></td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="descr">
      <H2>Description</H2>
      <div class="H2">
        <p>
          <span class="fun">mmsebox</span> creates the structuring element 
          <code>B</code> formed by 
          <code>r</code> successive Minkowski additions of the elementary square (i.e., the 3x3 square centered at the origin) with itself. If 
          <code>R=0, B</code> is the unitary set that contains the origin. If 
          <code>R=1, B</code> is the elementary square itself.
                  
        </p>
      </div>
    </div>
    <div class="examples">
      <H2>Examples</H2>
      <div class="H2">
        <p>
          <div class="example">
            <div class="listing">
              <pre class="user">&gt;&gt;&gt; b1 = mmsebox()</pre>
              <pre class="computer"></pre>
              <pre class="user">&gt;&gt;&gt; mmseshow(b1)</pre>
              <pre class="computer">array([[1, 1, 1],
       [1, 1, 1],
       [1, 1, 1]],'1')</pre>
              <pre class="user">&gt;&gt;&gt; b2 = mmsebox(2)</pre>
              <pre class="computer"></pre>
              <pre class="user">&gt;&gt;&gt; mmseshow(b2)
        </pre>
              <pre class="computer">array([[1, 1, 1, 1, 1],
       [1, 1, 1, 1, 1],
       [1, 1, 1, 1, 1],
       [1, 1, 1, 1, 1],
       [1, 1, 1, 1, 1]],'1')</pre>
            </div>
          </div>
        </p>
      </div>
    </div>
    <div class="equation">
      <H2>Equation</H2>
      <div class="H2">
        <p>
          <div class="eqfig">
            <img src="../images/eq_mmsebox001.png">
          </div>
        </p>
      </div>
    </div>
    <div class="sourcecode">
      <H2>Source Code</H2>
      <div class="H2">
        <pre class="listing">
def mmsebox(r=1):
    B = mmsesum(mmbinary([[1,1,1],
                          [1,1,1],
                          [1,1,1]]),r)
    return B
    </pre>
      </div>
    </div>
    <div class="seealso">
      <H2>See also</H2>
      <div class="H2">
        <table class="deflist">
          <tbody valign="baseline">
            <tr>
              <td class="term"><a href="../morph/mmfreedom.html">mmfreedom</a></td>
              <td class="def">Control automatic data type conversion.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmsecross.html">mmsecross</a></td>
              <td class="def">Diamond structuring element and elementary 3x3 cross.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmsedisk.html">mmsedisk</a></td>
              <td class="def">Create a disk or a semi-sphere structuring element.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmseshow.html">mmseshow</a></td>
              <td class="def">Display a structuring element as an image.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmdil.html">mmdil</a></td>
              <td class="def">Dilate an image by a structuring element.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmseline.html">mmseline</a></td>
              <td class="def">Create a line structuring element.</td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <center>
      <table class="botNav">
        <tr>
          <td class="index">
                    [<a href="../morph/mmimg2se.html"><tt>mmimg2se</tt></a>]
                
                    [<a href="index.html">Up</a>]
                    
                    [<a href="../morph/mmsecross.html"><tt>mmsecross</tt></a>]
                </td>
          <td rowspan="2" class="xhtml"><a href="http://www.python.org"><img width="55" alt="Python" height="22" src="../PythonPoweredSmall.gif"></a></td>
        </tr>
        <tr>
          <td class="copyright">Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.</td>
        </tr>
      </table>
    </center>
  </body>
</html>