<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>mmsereflect</title> <link href="../tbxdok.css" rel="stylesheet"> </head> <body> <table class="topNav"> <tr> <td class="index"> [<a href="../morph/mmsetrans.html"><tt>mmsetrans</tt></a>] [<a href="index.html">Up</a>] [<a href="../morph/mmsedil.html"><tt>mmsedil</tt></a>] </td> <td class="title">Structuring Elements</td> </tr> </table> <h1>mmsereflect <br> <span class="subtitle">Reflect a structuring element </span> </h1> <div class="synopsis"> <H2>Synopsis</H2> <div class="H2"> <div class="prototype">Bo = <span class="fun">mmsereflect</span>( <span class="par">Bi</span> ) </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">Bi</span></td> <td class="def"><span class="type"><a href="../mmtypes/mmSe.html">Structuring Element</a></span></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">Bo</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">mmsereflect</span> reflects a structuring element by rotating it 180 degrees. </p> </div> </div> <div class="examples"> <H2>Examples</H2> <div class="H2"> <p> <div class="example"> <div class="listing"> <pre class="user">>>> b1 = mmseline(5,30)</pre> <pre class="computer"></pre> <pre class="user">>>> print mmseshow(b1)</pre> <pre class="computer">[[0 0 0 0 0 0 0] [0 0 0 0 0 0 0] [0 0 0 1 0 0 0] [0 0 0 0 1 1 0] [0 0 0 0 0 0 1]]</pre> <pre class="user">>>> b2 = mmsereflect(b1)</pre> <pre class="computer"></pre> <pre class="user">>>> print mmseshow(b2)</pre> <pre class="computer">[[1 0 0 0 0 0 0] [0 1 1 0 0 0 0] [0 0 0 1 0 0 0] [0 0 0 0 0 0 0] [0 0 0 0 0 0 0]]</pre> </div> </div> </p> </div> </div> <div class="equation"> <H2>Equation</H2> <div class="H2"> <p> <div class="bridge">Flat structuring element:</div> <div class="eqfig"> <img src="../images/eq_mmsereflect001.png"> </div> </p> </div> </div> <div class="sourcecode"> <H2>Source Code</H2> <div class="H2"> <pre class="listing"> def mmsereflect(Bi): Bo = mmserot(Bi, 180) return Bo </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/mmdil.html">mmdil</a></td> <td class="def">Dilate an image by a 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/mmero.html">mmero</a></td> <td class="def">Erode an image by a structuring element.</td> </tr> <tr> <td class="term"><a href="../morph/mmsesum.html">mmsesum</a></td> <td class="def">N-1 iterative Minkowski additions</td> </tr> <tr> <td class="term"><a href="../morph/mmseunion.html">mmseunion</a></td> <td class="def">Union of structuring elements</td> </tr> </tbody> </table> </div> </div> <center> <table class="botNav"> <tr> <td class="index"> [<a href="../morph/mmsetrans.html"><tt>mmsetrans</tt></a>] [<a href="index.html">Up</a>] [<a href="../morph/mmsedil.html"><tt>mmsedil</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>