[Insight-users] Re: meta image files (fwd)

Mathieu Malaterre Mathieu.Malaterre@creatis.insa-lyon.fr
Wed, 16 Apr 2003 19:49:14 +0200


George,
	Valid ElementType are (see Insight/Utilities/MetaIO/metaTypes.h):

typedef enum
    {
    MET_NONE,
    MET_ASCII_CHAR,
    MET_CHAR,
    MET_UCHAR,
    MET_SHORT,
    MET_USHORT,
    MET_INT,
    MET_UINT,
    MET_FLOAT,
    MET_DOUBLE,
    MET_STRING,
    MET_CHAR_ARRAY,
    MET_UCHAR_ARRAY,
    MET_SHORT_ARRAY,
    MET_USHORT_ARRAY,
    MET_INT_ARRAY,
    MET_UINT_ARRAY,
    MET_FLOAT_ARRAY,
    MET_DOUBLE_ARRAY,
    MET_FLOAT_MATRIX,
    MET_OTHER
    } MET_ValueEnumType;


HTH
mathieu

George C LaVerde wrote:
> Hi, can anybody help me with this? Thanks,
> 
> 
> ---------- Forwarded message ----------
> Date: Mon, 14 Apr 2003 10:56:00 -0400 (EDT)
> From: George C LaVerde <gclst6@pitt.edu>
> To: dmshelto@andrew.cmu.edu
> Subject: Re: meta image files
> 
> 
> Damion,
> 	In brainweb165a10f17.mha is:
> 
> NDims = 3
> DimSize = 181 217 180
> ElementType = MET_UCHAR
> ElementSpacing = 1.0 1.0 1.0
> ElementByteOrderMSB = False
> ElementDataFile = brainweb165a10f17.raw
> 
> I'm trying to convert raw image files to .mha files.  I assume that the
> above:
> ElementType = MET_UCHAR
> is declaring the pixel type to unsigned char.  What is the correct thing
> for:
> 
> short int
> long int
> float
> double
> 
> and do I just add the "U" to make them unsigned?
> 
> I looked at the website below, but I couldn't find any info about this.
> 
> The BrainWeb project home page is :
> 
>    http://www.bic.mni.mcgill.ca/brainweb
> 
> Thanks,
> 
> George
> 
> 
> -----------------
> George C. LaVerde
> MD/PhD Student
> Univ. of Pittsburgh
> gclst6+@pitt.edu
> (412)889-2046
> 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/