[vtkusers] Convert from RGBA values to the index in the VTK Lookup Table

Kanghong Li kli at issi-hsv.com
Tue Jan 25 17:59:14 EST 2005


Anyone knows a way to convert from RGB values (3 numbers + A if needed) to the scalar/index (a value between 0 and 1) in the default vtk lookup table? Thanks.

For example, RGB (51,51,255), can I get a value between 0 and 1 (index to the vtk lookup table) from that 3 numbers?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050125/1c2dc84b/attachment.htm>


More information about the vtkusers mailing list