[vtkusers] Render grey scale volume data
Lisa Avila
lisa.avila at kitware.com
Tue Sep 30 13:11:40 EDT 2003
Hello Chunyan,
You probably want to use a vtkVolume and a vtkVolumeRayCastMapper (or a
vtkVolumeTextureMapper) in order to render your data. You will need to set
at least the scalar opacity and color transfer functions in the
vtkVolumeProperty - you can set the color to solid white (1,1,1) and the
opacity to a ramp between 0.0 and some number <= 1.0. To see what your
results should (approximately) look like you can try loading your data in
VolView (you can get it from the Kitware web site).
Lisa
At 11:11 AM 9/30/2003, jiang wrote:
>Hi,
>I want to render a volume data. The data is imported from other souce (ITK)
>by vtkImageImport. Then I use vtkImageToStructuredPoints to transfer
>vtkImageImport to vtkStructuredPoints, and render it by vtkDataSetMapper and
>vtkActor.
>However the object shown on the screen is not grey scale. It is color
>object. The area where should be black is blue. And the gray content in the
>object is very unclear. My image data is unsigned short.
>I remember I met this problem before. But I forget how to solve it. :( It
>seems that I should set some parameter to vktMapper or something else.
>Who can help me? Thanks a lot!
>
>Chunyan
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list