Sophie

Sophie

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

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

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
    <title>mmSe</title>
    <link href="../tbxdok.css" rel="stylesheet">
  </head>
  <body>
    <table class="topNav">
      <tr>
        <td class="index">
                  [<a href="../mmtypes/mmImage.html"><tt>mmImage</tt></a>]
              
                  [<a href="index.html">Up</a>]
                  
                  [<a href="../mmtypes/mmInterval.html"><tt>mmInterval</tt></a>]
              </td>
        <td class="title">Data Types</td>
      </tr>
    </table>
    <h1>mmSe
      <br>
      <span class="subtitle">Toolbox structuring element datatype
</span>
    </h1>
    <div class="descr">
      <H2>Description</H2>
      <div class="H2">
        <p>
                      The structuring element is normally represented by a binary or int32 matrix that by convention the position of the origin [0,0] is at the center of the matrix. The structuring elements can be flat, represented by a binary matrix or non-flat, represented by an uint32 matrix. Sometimes, the structuring element can be represented by an internal data structure so that the best way to visualize a structuring element is by calling the function mmseshow which converts the structuring element to a matrix with the above conventions.
                  
        </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; print mmseshow(mmsecross())</pre>
              <pre class="computer">[[0 1 0]
 [1 1 1]
 [0 1 0]]</pre>
              <pre class="user">&gt;&gt;&gt; print mmseshow(mmsecross(),'non-flat')</pre>
              <pre class="computer">[[-2147483647           0 -2147483647]
 [          0           0           0]
 [-2147483647           0 -2147483647]]</pre>
              <pre class="user">&gt;&gt;&gt; print mmseshow(mmbinary([0,1,1]))</pre>
              <pre class="computer">[0 1 1]</pre>
            </div>
          </div>A graphical representation of a flat structuring element can be created using the option 'expand' in the mmseshow function:

          <div class="example">
            <div class="listing">
              <pre class="user">&gt;&gt;&gt; B = mmsecross(3)</pre>
              <pre class="computer"></pre>
              <pre class="user">&gt;&gt;&gt; F = mmseshow(B,'expand')</pre>
              <pre class="computer"></pre>
              <pre class="user">&gt;&gt;&gt; mmshow(F)</pre>
              <pre class="computer"></pre>
            </div>
            <table class="images">
              <tbody align="center">
                <tr class="image" valign="bottom">
                  <td><img width="119" src="../images/img_mmSe_001.jpg"></td>
                  <td class="spare"></td>
                </tr>
                <tr class="title" valign="baseline">
                  <td><a href="../images/img_mmSe_001.jpg">F</a></td>
                  <td class="spare"></td>
                </tr>
              </tbody>
            </table>
          </div>
        </p>
      </div>
    </div>
    <div class="seealso">
      <H2>See also</H2>
      <div class="H2">
        <table class="deflist">
          <tbody valign="baseline"></tbody>
        </table>
      </div>
    </div>
    <center>
      <table class="botNav">
        <tr>
          <td class="index">
                    [<a href="../mmtypes/mmImage.html"><tt>mmImage</tt></a>]
                
                    [<a href="index.html">Up</a>]
                    
                    [<a href="../mmtypes/mmInterval.html"><tt>mmInterval</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>