<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry version="5.0-subset Scilab" xml:id="ind2rgb" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns5="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <pubdate>August, 2007</pubdate>
  </info>

  <refnamediv>
    <refname>ind2rgb</refname>

    <refpurpose>convert indexed image to true color image</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Calling Sequence</title>

    <synopsis>rgb = ind2rgb(ind,cmap)</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Parameters</title>

    <variablelist>
      <varlistentry>
        <term>rgb</term>

        <listitem>
           MxNx3 true color image in the 0-1 range 
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ind</term>

        <listitem>
           MxN indexed image, integer matrix 
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>cmap</term>

        <listitem>
           color map 
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Description</title>

    <para>ind2rgb utility function converts an indexed image to true color
    image for pseudo color visualization.</para>
  </refsection>

  <refsection>
    <title>Examples</title>

    <programlisting role="example">  a = [1:0.05:16];
  b = int32(a'*a);
  cmap = jetcolormap(256);
  c = ind2rgb(b,cmap);
  imshow(c); </programlisting>
  </refsection>

  <refsection>
    <title>Authors</title>

    <simplelist type="vert">
      <member>Roger Liu</member>

      <member>Isaac Zhi</member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Availability</title>

     The latest version of SIVP can be found at 

    <para>http://sivp.sf.net</para>

     
  </refsection>

  <refsection>
    <title>See Also</title>

    <simplelist type="inline">
      <member>None</member>
    </simplelist>
  </refsection>
</refentry>
