[vtkusers] vtkScalarType question
tao sun
colddiesun at gmail.com
Tue Jun 4 20:47:09 EDT 2013
Thanks much.
2013/6/4 Bill Lorensen <bill.lorensen at gmail.com>
> There are defined in vtkType.h:
> /* These types are returned by GetDataType to indicate pixel type. */
> #define VTK_VOID 0
> #define VTK_BIT 1
> #define VTK_CHAR 2
> #define VTK_SIGNED_CHAR 15
> #define VTK_UNSIGNED_CHAR 3
> #define VTK_SHORT 4
> #define VTK_UNSIGNED_SHORT 5
> #define VTK_INT 6
> #define VTK_UNSIGNED_INT 7
> #define VTK_LONG 8
> #define VTK_UNSIGNED_LONG 9
> #define VTK_FLOAT 10
> #define VTK_DOUBLE 11
> #define VTK_ID_TYPE 12
>
>
>
> On Tue, Jun 4, 2013 at 9:05 AM, tao sun <colddiesun at gmail.com> wrote:
>
>> Hi,
>>
>>
>> I am trying to get the scalar type form a known vtkImageData. I
>> understand that the types are all form one enum, but how can I know which
>> one is which type (0 = unsigned char?). I checked documentation but found
>> nothing. Can some one give a value map of this?
>>
>>
>> Sun Tao
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130605/36a6f2ed/attachment.htm>
More information about the vtkusers
mailing list