<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am trying to convert from the RGBA values 
returned from Java JColorChooser to an index in the vtk lookup table. Somehow 
the following</FONT></DIV>
<DIV><FONT face=Arial size=2>conversion:</FONT></DIV>
<DIV><FONT face=Arial size=2>0.<FONT face="Times New Roman" size=3>299*R + 
0.587*G + 0.114*B or A*(0.299*R + 0.587*G + 0.114*B).<BR><FONT face=Arial 
size=2>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.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyone knows what could cause the problem? Any 
solutions? Thanks.</FONT></DIV></BODY></HTML>