"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/help/en_US/thin.xml" (22 Feb 2012, 2882 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 "thin.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="thin"><info><pubdate>February 2004</pubdate></info><refnamediv><refname>thin</refname><refpurpose>thinning by border deletion</refpurpose></refnamediv>
    2    <refsynopsisdiv><title>Calling Sequence</title><synopsis>out = thin(img)</synopsis></refsynopsisdiv>
    3    <refsection><title>Parameters</title>
    4       <variablelist>
    5          <varlistentry>
    6             <term>img</term>
    7             <listitem>
    8        Binary image containing one or more binary shapes. (foreground == 1, background == 0),
    9       </listitem>
   10          </varlistentry>
   11          <varlistentry>
   12             <term>out</term>
   13             <listitem>
   14        Internal skeleton, thinned version of the shapes in the input image.
   15       </listitem>
   16          </varlistentry>
   17       </variablelist>
   18    </refsection>
   19    <refsection><title>Description</title>
   20       <para>
   21       Function <literal>thin</literal> performs thinning of binary objects. It  uses the Zhang-Suen, a de facto standard and simple technique. The resulting image, the skeleton, is not always  connected and is very sensible to noise. It is also slower  than a good skeletonization algorithm (see skel). For thin  shapes, it should work faster and provide better quality.  You will need some pruning criterium to eliminate spurs. </para>
   22    </refsection>
   23    <refsection><title>Examples</title><programlisting role="example"><![CDATA[
   24        im=gray_imread(SIPDIR+'images/r.gif');
   25        imshow(im,2);
   26        skl = thin(im);
   27        clf;
   28        imshow(im+skl,[]);
   29        // Quality is definitely inferior to that of good skeletonization
   30        // methods, as in the following test
   31        im=gray_imread(SIPDIR+'images/escher.png');
   32        skl = thin(im);      // Ordinary thinning
   33        clf;
   34        xset('wdim',400,500);
   35        subplot(1,2,1);
   36        imshow(im+skl,[]);
   37        xset('wdim',800,400);
   38        skl = skel(im);      // multiscale euclidean skeletonization
   39        subplot(1,2,2);
   40        imshow(im+(skl &gt;= 10),[]);
   41        xset('wdim',800,400);
   42    ]]></programlisting></refsection>
   43    <refsection><title>Authors</title><simplelist type="vert">
   44       <member> Ricardo Fabbri &lt;ricardofabbri (AT) users DOT sf DOT net&gt; </member>
   45    </simplelist></refsection>
   46    <refsection><title>Availability</title>
   47 The latest version of the Scilab Image Processing toolbox can be found at
   48 <para>
   49          http://siptoolbox.sourceforge.net
   50       </para>
   51    </refsection>
   52    <refsection><title>See Also</title><simplelist type="inline">
   53       <member> 
   54          <link linkend="skel">skel</link> 
   55       </member>
   56    </simplelist></refsection>
   57 </refentry>