[vtkusers] RGB Image to viewer
Juan Carlos Prieto
prieto at creatis.insa-lyon.fr
Thu Sep 22 12:26:06 EDT 2011
Hello all,
I have an rgb image that I created and contains a color gradation i.e.
the color spectrum.
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.
I have also tried adding some colors like this:
colorfunction->AddRGBPoint( mingreyvalue, r, g, b); //the grey value
is a double
colorfunction->AddRGBPoint( maxgreyvalue, r, g, b);
colorfunction->Build();
But this doesn't do the trick, I just shows the colors correspoding to
min and max.
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.
Please any ideas or comments are welcome.
Thank you very much,
--
Juan Carlos Prieto
Phd Student
CREATIS <http://www.creatis.insa-lyon.fr> Tel:+33472438918
7 Av Jean Capelle
69621 Villeurbanne Cedex
France
Personal page <http://www.creatis.insa-lyon.fr/%7Eprieto>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110922/80280a7e/attachment.htm>
More information about the vtkusers
mailing list