<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>mmCoord</title> <link href="../tbxdok.css" rel="stylesheet"> </head> <body> <table class="topNav"> <tr> <td class="index"> [<a href="../mmtypes/mmString.html"><tt>mmString</tt></a>] [<a href="index.html">Up</a>] </td> <td class="title">Data Types</td> </tr> </table> <h1>mmCoord <br> <span class="subtitle">Image pixel coordinates </span> </h1> <div class="descr"> <H2>Description</H2> <div class="H2"> <p> The pixel coordinates data type is an int32 vector of up to three values depending on the image dimensionality: 1D: [column]; 2D: [row,column]; 3D: [depth,row,column]. The top-left pixel of a 2D image is at the coordinates [0,0]. The center pixel of a structuring element is at coordinates [0,0] increasing from left to right and top to down. </p> </div> </div> <div class="examples"> <H2>Examples</H2> <div class="H2"> <p> In the example below, a one pixel structuring element centered at the origin [0,0] is translated one row down and two columns to the left: <div class="example"> <div class="listing"> <pre class="user">>>> b = mmsetrans(mmbinary([1]),[1,-2])</pre> <pre class="computer"></pre> <pre class="user">>>> print mmseshow(b)</pre> <pre class="computer">[[0 0 0 0 0] [0 0 0 0 0] [1 0 0 0 0]]</pre> </div> </div> </p> </div> </div> <div class="seealso"> <H2>See also</H2> <div class="H2"> <table class="deflist"> <tbody valign="baseline"> <tr> <td class="term"><a href="../mmtypes/mmSe.html">mmSe</a></td> <td class="def">Toolbox structuring element datatype</td> </tr> <tr> <td class="term"><a href="../morph/mmsetrans.html">mmsetrans</a></td> <td class="def">Translate a structuring element</td> </tr> </tbody> </table> </div> </div> <center> <table class="botNav"> <tr> <td class="index"> [<a href="../mmtypes/mmString.html"><tt>mmString</tt></a>] [<a href="index.html">Up</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>