[vtkusers] Can any body help!

Marc Cotran marc at cotran.ca
Mon Apr 23 14:18:01 EDT 2007


Hi Saira,

This is a common problem, and you can most likely find other threads on 
the mailing list for it.

You have two options here. One is to use a mapper that supports the 
short data type (eg. vtkFixedPointMaper) and pass your data as is. The 
other is change the data's scalar type and then use the ray cast mapper. 
To change the scalar type without compromising the range of your data, 
take a look at vtkImageShiftScale.

Marc

Engr. Saira Saleem Pathan wrote:
> hi
> I m writing a code and i can read Dicom data series and i want to 
> apply Volume Rendering on that data which i READ.
> the following error is coming.
>
> ERROR: In /usr/not-backed-up/VTK/Rendering/vtkVolumeRayCastMapper.cxx, 
> line 325
> vtkOpenGLVolumeRayCastMapper (0x894b6f0): Cannot volume render data of 
> type short, only unsigned char or unsigned short.
>
> thanks
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list