"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/help/en_US/erode.xml" (29 Feb 2012, 3235 Bytes) of package /linux/privat/sip-0.12.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "erode.xml": 0.5.6_vs_0.12.1.

    1 <?xml version="1.0" encoding="ISO-8859-1"?><refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="erode"><info><pubdate>February 2004</pubdate></info><refnamediv><refname>erode</refname><refpurpose>Morphological erosion of binary images</refpurpose></refnamediv>
    2    
    3    
    4    
    5    
    6    
    7    
    8    
    9    
   10    
   11    
   12    
   13    <refsynopsisdiv><title>Calling Sequence</title><synopsis>E = erode(Img, [SE, center])</synopsis></refsynopsisdiv>
   14    
   15    <refsection><title>Parameters</title>
   16    
   17       <variablelist>
   18       
   19          <varlistentry>
   20       
   21             <term>Img</term>
   22       
   23             <listitem>
   24        M x N Binary image to be eroded. (0 for background, 1 for object)
   25       </listitem>
   26       
   27          </varlistentry>
   28       
   29          <varlistentry>
   30       
   31             <term>E</term>
   32       
   33             <listitem>
   34        M x N Binary eroded image.
   35       </listitem>
   36       
   37          </varlistentry>
   38       
   39          <varlistentry>
   40       
   41             <term>SE</term>
   42       
   43             <listitem>
   44        Arbitrary structuring element represented as a binary array. Defaults to
   45       </listitem>
   46       
   47          </varlistentry>
   48       
   49          <varlistentry>
   50       
   51             <term>center</term>
   52       
   53             <listitem>
   54        origin of structuring element. Shold be within image dimensions. Defaults to the center of the SE array.
   55       </listitem>
   56       
   57          </varlistentry>
   58    
   59       </variablelist>
   60    
   61    </refsection>
   62    
   63    <refsection><title>Description</title>
   64    
   65       <para>
   66  Function erode performs morphological erosion of a binary  image Img using SE as the structuring element. 
   67  If your <literal>SE</literal> is a perfect circle with large radius, consider using the much faster <link linkend="edilate">edilate</link> function with an inverted <literal>Img</literal> (e.g. <literal>edilate(1-Img, radius)</literal>).
   68  </para>
   69    
   70    </refsection>
   71    
   72    <refsection><title>Examples</title><programlisting role="example"><![CDATA[
   73        initial_dir = PWD;
   74        chdir (SIPDIR + 'images');
   75 
   76        Img = gray_imread('disks2.bmp');
   77        imshow(Img,2);
   78        Img = 1-Img;
   79        SE = ones(10,10);
   80        e = erode(Img, SE);
   81        clf
   82        imshow(e ,2);
   83 
   84        chdir(initial_dir);
   85    ]]></programlisting></refsection>
   86    
   87    <refsection><title>Authors</title><simplelist type="vert">
   88       
   89       <member> Ricardo Fabbri &lt;ricardofabbri (AT) users DOT sf DOT net&gt; </member>
   90    
   91    </simplelist></refsection>
   92 
   93 
   94    
   95 
   96 
   97    <refsection><title>Availability</title>
   98 The latest version of the Scilab Image Processing toolbox can be found at
   99 <para>
  100          http://siptoolbox.sourceforge.net
  101       </para>
  102 
  103    </refsection>
  104 
  105    
  106    <refsection><title>See Also</title><simplelist type="inline">
  107       
  108       <member> 
  109          <link linkend="dilate">dilate</link> 
  110       </member>
  111       
  112       <member> 
  113          <link linkend="edilate">edilate</link> 
  114       </member>
  115       
  116       <member> 
  117          <link linkend="bwdist">bwdist</link> 
  118       </member>
  119    
  120    </simplelist></refsection>
  121 
  122 </refentry>