That works great!  Now I would like to take the objects that I have and be able to control their rendered color through user interaction.  I have a vtkCellPicker that is used to get the 3D point selected by the user.  What is the best way of getting the scalar value associated to that point?  In other words, if I have an (x, y, z) location that should be a part of object 9 (whose scalar value is 9), is there a method that I can call with (x, y, z) that will return '9' or some sort of a vtkObject that I can extract the scalar value from?
<br><br>Thanks!<br>-Jake<br><br><div class="gmail_quote">On Nov 28, 2007 7:41 AM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Jake,</div>
<div>&nbsp;</div>
<div>vtkDiscreteMarchingCubes will extract one or more labeled structures from a vtk image.</div>
<div>&nbsp;</div>
<div><a href="http://www.vtk.org/doc/nightly/html/classvtkDiscreteMarchingCubes.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkDiscreteMarchingCubes.html</a></div>
<div>&nbsp;</div>
<div>There is a short example of usage in:</div>
<div>&nbsp;</div>
<div><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Tcl/TestDiscreteMarchingCubes.tcl?root=VTK&amp;content-type=text/plain" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Tcl/TestDiscreteMarchingCubes.tcl?root=VTK&amp;content-type=text/plain
</a></div>
<div>&nbsp;</div>
<div>Bill<br><br></div>
<div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Nov 28, 2007 1:11 AM, Jake Nickel &lt;<a href="mailto:jake.nickel@gmail.com" target="_blank">jake.nickel@gmail.com</a>&gt; wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Hi All,<br><br>I have an Analyze image that is segmented into different objects in the following manner:&nbsp; All voxels associated with object 1 are assigned value = 1, voxels associated with object 2 are assigned value = 2, etc.&nbsp; (Background voxel values = 0) 
<br><br>I would like to visualize the entire data set and have a single object stand out by rendering it with a different color than the rest of the objects.&nbsp; For example, I would like object 1 to be red and objects 2 and up to be white (black background). 
<br><br>The data set is large enough to where volume rendering performance is very slow, so I have been surface rendering instead.&nbsp; I am able to read the image in using ITK and get the voxel values.&nbsp; In order to render the surface, I&#39;ve used the itkImageToVTKImageFilter to convert the image to VTK. 
<br><br>Is there a special filter that would be good for doing this?&nbsp; Or does anyone have any insight as to how I should approach this?<br><br>Thanks in advance for any help!<br><font color="#888888">-Jake<br></font><br>
</div></div>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br>
</blockquote></div><br>