<html><div style='background-color:'><DIV>hi,</DIV>
<DIV>anyone know why i am not seeing any color or anything with the following lookup table? i just see strict black and white:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>vtkImageViewer *viewer = vtkImageViewer::New();<BR>vtkImageData *imageData = vtkImageData::New();<BR>vtkFloatArray *fltarray = vtkFloatArray::New();<BR>vtkLookupTable *lut=vtkLookupTable::New();<BR></DIV>
<DIV>lut->SetHueRange(0.667, 0.0);<BR>lut->SetSaturationRange(1.0, 1.0);<BR>lut->SetValueRange(1.0, 1.0);<BR>lut->SetAlphaRange(1.0, 1.0);<BR>lut->SetNumberOfColors(256);<BR>lut->Build();</DIV>
<DIV> </DIV>
<DIV>fltarray->SetLookupTable(lut);</DIV>
<DIV><BR>imageData->GetPointData()->SetScalars(fltarray); </DIV>
<DIV><BR>viewer->SetInput(imageData);<BR>viewer->SetColorWindow(0.0);<BR>viewer->SetColorLevel(0.0);</DIV>
<DIV> </DIV>
<DIV>etc.. and then viewer->Render()</DIV>
<DIV> </DIV>
<DIV>this is the basics of my code.. no matter how i change the lookup table, i see no difference...</DIV>
<DIV>i know it must be something very silly - but if anyone has any insight..</DIV>
<DIV>then thats great!</DIV>
<DIV> </DIV>
<DIV>thank u</DIV>
<DIV> </DIV>
<DIV>-vtkNewbie</DIV>
<DIV> </DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2755??PS=">Want to check if your PC is virus-infected? Get a FREE computer virus scan online from McAfee.</a> </html>