<html><div style='background-color:'><DIV class=RTE>Hello</DIV>
<DIV class=RTE>I have a bunch of points being represented as vtkImageData, and each point has a float scalar value associated with it.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>How do I map this scalar data onto grayscale? i.e. - my lowest scalar value (say 0.0)&nbsp;to appear&nbsp;black, my highest scalar value (say 2.5) to appear white, and anything in between to be some shade of gray?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>So far I've used the following, (but i'm obvoiusly forgetting something because i&nbsp;get a big white rectangle...?) </DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>lut-&gt;SetTableRange(scalarRange); // this&nbsp;scalarRange[2] &nbsp;has the min/max of my scalar data <BR>lut-&gt;SetHueRange(0, 0);<BR>lut-&gt;SetSaturationRange(0, 0);<BR></DIV>
<DIV class=RTE>dataMapper1-&gt;SetInput(imageData);<BR>dataMapper1-&gt;ScalarVisibilityOn();<BR>dataMapper1-&gt;SetLookupTable(lut);<BR>dataMapper1-&gt;SetScalarRange(scalarRange);</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>mainActor-&gt;SetMapper(dataMapper1);</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>thanks for your help in advance</DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2734??PS=">Worried about inbox overload? Get MSN Extra Storage now! </a> </html>