<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello all, <br>
    <br>
    I have an rgb image that I created and contains a color gradation
    i.e. the color spectrum. <br>
    I have tried using the vtkColorTransferFunction to add all the
    colors but this causes the application to lock, I guess for the
    large lookuptable takes a long time to process.<br>
    <br>
    I have also tried adding some colors like this:<br>
    <br>
    <blockquote>colorfunction-&gt;AddRGBPoint( mingreyvalue, r, g, b);
      //the grey value is a double<br>
      colorfunction-&gt;AddRGBPoint( maxgreyvalue, r, g, b); <br>
      colorfunction-&gt;Build();<br>
    </blockquote>
    <br>
    But this doesn't do the trick, I just shows the colors correspoding
    to min and max. <br>
    <br>
    I've seen that in applications like volview, the image is shown
    correctly and it doesn't take a long time to load or anything, so I
    guess there is an efficient way to build up the lookuptable that
    shows the correct values for every voxel.<br>
    <br>
    Please any ideas or comments are welcome.<br>
    <br>
    Thank you very much,<br>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Juan Carlos Prieto
      <font face="arial" color="grey" size="2">
        <br>
        Phd Student
        <br>
        <a href="http://www.creatis.insa-lyon.fr">CREATIS</a>
        Tel:+33472438918
        <br>
        7 Av Jean Capelle
        <br>
        69621 Villeurbanne Cedex
        <br>
        France <br>
        <a href="http://www.creatis.insa-lyon.fr/%7Eprieto">Personal
          page</a>
      </font>
    </div>
  </body>
</html>