Sophie

Sophie

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

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

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
    <title>mminfcanon</title>
    <link href="../tbxdok.css" rel="stylesheet">
  </head>
  <body>
    <table class="topNav">
      <tr>
        <td class="index">
                  [<a href="../morph/mmthreshad.html"><tt>mmthreshad</tt></a>]
              
                  [<a href="index.html">Up</a>]
                  
                  [<a href="../morph/mminfgen.html"><tt>mminfgen</tt></a>]
              </td>
        <td class="title">Sup-generating And Inf-generating</td>
      </tr>
    </table>
    <h1>mminfcanon
      <br>
      <span class="subtitle">Intersection of inf-generating operators.
</span>
    </h1>
    <div class="synopsis">
      <H2>Synopsis</H2>
      <div class="H2">
        <div class="prototype">y = 
          <span class="fun">mminfcanon</span>(
                  
          <span class="par">f</span>, 
          <span class="par">Iab</span>, 
          <span class="par">theta</span> = 45, 
          <span class="par">DIRECTION</span> = "CLOCKWISE"
                  )
        </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">f</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmImage.html">Image</a></span>          Binary image.
                        </td>
                </tr>
                <tr>
                  <td class="term"><span class="par">Iab</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmInterval.html">Interval</a></span></td>
                </tr>
                <tr>
                  <td class="term"><span class="par">theta</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmDouble.html">Double</a></span><p>Degrees of rotation: 45, 90, or 180.</p><p>Default: 
                      <code>45</code>
                    </p></td>
                </tr>
                <tr>
                  <td class="term"><span class="par">DIRECTION</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmString.html">String</a></span><p>'CLOCKWISE' or ' ANTI-CLOCKWISE'</p><p>Default: 
                      <code>"CLOCKWISE"</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">y</span></td>
                  <td class="def"><span class="type"><a href="../mmtypes/mmImage.html">Image</a></span>          Binary image.
                        </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="descr">
      <H2>Description</H2>
      <div class="H2">
        <p>
          <span class="fun">mminfcanon</span> creates the image 
          <code>y</code> by computing intersections of transformations of the image 
          <code>f</code> by inf-generating (i.e.,  dual of the hit-or-miss) operators. These inf-generating operators are characterized by rotations (in the clockwise or anti-clockwise direction) of 
          <code>theta</code> degrees of the interval 
          <code>Iab</code>.
                  
        </p>
      </div>
    </div>
    <div class="equation">
      <H2>Equation</H2>
      <div class="H2">
        <p>
          <div class="eqfig">
            <img src="../images/eq_mminfcanon001.png">
          </div>
        </p>
      </div>
    </div>
    <div class="sourcecode">
      <H2>Source Code</H2>
      <div class="H2">
        <pre class="listing">
def mminfcanon(f, Iab, theta=45, DIRECTION="CLOCKWISE"):
    from string import upper
    DIRECTION = upper(DIRECTION)            
    y = mmunion(f,1)
    for t in range(0,360,theta):
        Irot = mminterot( Iab, t, DIRECTION )
        y = mmintersec( y, mminfgen(f, Irot))
    return y
    </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/mminfgen.html">mminfgen</a></td>
              <td class="def">Inf-generating.</td>
            </tr>
            <tr>
              <td class="term"><a href="../morph/mmsupcanon.html">mmsupcanon</a></td>
              <td class="def">Union of sup-generating or hit-miss operators.</td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <center>
      <table class="botNav">
        <tr>
          <td class="index">
                    [<a href="../morph/mmthreshad.html"><tt>mmthreshad</tt></a>]
                
                    [<a href="index.html">Up</a>]
                    
                    [<a href="../morph/mminfgen.html"><tt>mminfgen</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>