[vtkusers] Map RGBA from JColorChooser to an index in vtk default lookup table

Kanghong Li kli at issi-hsv.com
Wed Jan 26 11:07:06 EST 2005

I am trying to convert from the RGBA values returned from Java JColorChooser to an index in the vtk lookup table. Somehow the following
0.299*R + 0.587*G + 0.114*B or A*(0.299*R + 0.587*G + 0.114*B).
did not give me the right index to the vtk lut. In other words, the color from lut did not match the one selected from the JColorChooser.

Anyone knows what could cause the problem? Any solutions? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050126/489a84f3/attachment.htm>

More information about the vtkusers mailing list