[OpenWalnut-Dev] [OWci] r5271: [ADD #83] added new handled data types

Alexander Wiebel wiebel_openwalnut at dergrosse.de
Wed Oct 5 14:12:11 CEST 2011


Hi,
just to note it for everyone (summary from the phone call):

> * WReadNifiti supports all integral/float type
> [...]
> Please always consider to support all the types if you write algorithms, 

We want to support all types that I marked with # in my previous E-Mail
(see below)

>> One could aim at supporting all sensible
>> types in WDataHandlerEnums, e.g. all marked with # in the following list. However we do not have data for every thing so it will be hard to test if it works at the moment. If it is of interest I can implement a module than can produce test data in an arbitrary data type.
>>
>>     W_DT_NONE            =        0,
>>     W_DT_UNKNOWN         =        0,     /* what it says, dude           */
>>     W_DT_BINARY          =        1,     /* binary (1 bit/voxel)         */
>> #    W_DT_UNSIGNED_CHAR   =        2,     /* unsigned char (8 bits/voxel) */
>> #    W_DT_SIGNED_SHORT    =        4,     /* signed short (16 bits/voxel) */
>> #    W_DT_SIGNED_INT      =        8,     /* signed int (32 bits/voxel)   */
>> #    W_DT_FLOAT           =       16,     /* float (32 bits/voxel)        */
>>     W_DT_COMPLEX         =       32,     /* complex (64 bits/voxel)      */
>> #    W_DT_DOUBLE          =       64,     /* double (64 bits/voxel)       */
>>     W_DT_RGB             =      128,     /* RGB triple (24 bits/voxel)   */
>>     W_DT_ALL             =      255,     /* not very useful (?)          */
>> #    W_DT_INT8            =      256,     /* signed char (8 bits)         */
>> #    W_DT_UINT16          =      512,     /* unsigned short (16 bits)     */
>> #    W_DT_UINT8           =        2,     /* alias for unsigned char (8 bits/voxel) */
>> #    W_DT_INT16           =        4,     /* unsigned short (16 bits) alias name for W_DT_SIGNED_SHORT */
>> #    W_DT_UINT32          =      768,     /* unsigned int (32 bits)       */
>> #    W_DT_INT64           =     1024,     /* long long (64 bits)          */
>> #    W_DT_UINT64          =     1280,     /* unsigned long long (64 bits) */
>> #    W_DT_FLOAT128        =     1536,     /* long double (128 bits)       */
>>     W_DT_COMPLEX128      =     1792,     /* double pair (128 bits)       */
>>     W_DT_COMPLEX256      =     2048,     /* long double pair (256 bits)  */
>>     W_DT_RGBA32          =     2304      /* 4 byte RGBA (32 bits/voxel)  */

Cheers,
Alex


More information about the OpenWalnut-Dev mailing list