[vtkusers] Can any body help!

Amy Squillacote amy.squillacote at kitware.com
Mon Apr 23 14:20:09 EDT 2007


Is there a particular reason you have to use vtkVolumeRayCastMapper? If 
not, try using vtkFixedPointVolumeRayCastMapper; it can handle any 
scalar type.

If you need to use vtkVolumeRayCastMapper, pass your data through 
vtkImageShiftScale to convert it from short to either unsigned short or 
unsigned char, and then pass the output of the vtkImageShiftScale filter 
to vtkVolumeRayCastMapper.

- Amy

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
>

-- 
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106




More information about the vtkusers mailing list