[vtkusers] Changing Data Type

Darshan Pai darshanpai at gmail.com
Tue May 4 18:13:19 EDT 2010


I have an Analyze Image that i converted to VTK format for loading into the
VolumeMapper . My problem is Analyze is of type short and the VolumeMapper
only takes unsigned short.

Is there any way to convert the imageData with the datatype short to
unsigned short ?

I tried using the SetScalarType to UnsignedShort() but it did not change the
data type .


Regards
Darshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100504/6e948e07/attachment.htm>


More information about the vtkusers mailing list