Hello-<br>I am trying to add window/level settings to CT volume data I have read in.&nbsp; I am using a modified version of the ISIS::ImageSliceViewer code from Georgetown University.&nbsp; The code accepts input as vtkImageData which it adds to the rendered.&nbsp; I saw the example below and tried implementing it in my code:<br>
<br><a href="http://article.gmane.org/gmane.comp.lib.vtk.user/27109">http://article.gmane.org/gmane.comp.lib.vtk.user/27109</a>&nbsp;&nbsp;&nbsp;&nbsp; (similar to exercise 2f in the VTK course examples)<br><br>It uses the <span class="e">vtkPiecewiseFunction to setup a transfer function for the pixel values.&nbsp; My question is this:&nbsp; I currently have quite a lot of code that accepts vtkImageData.&nbsp; I was thinking of adding a way to add an actor that is comprised of the vtkVolumeData to the renderer, however this would require a major overhaul.&nbsp; Is there a(n easy) way i can convert this volume data back to image data prior to sending it to my ISIS renderer?&nbsp; Am I on the right track for adding window/level settings to my CT image? I assume this has been done before, and the code is available in Thanks in advance.<br>
<br>-Ryan<br></span>