[Insight-developers] MetaImage files

Luis Ibanez ibanez@choroid.cs.unc.edu
Wed, 11 Apr 2001 03:17:35 -0400 (EDT)


here is a brief description of
the header for RAW format of
MetaImage files:



NDims = 3
DimSize = 138 140 35
ElementSpacing = 0.55 0.57 1.0
ElementType = MET_USHORT
ElementByteOrderMSB = False
ElementDataFile = LOCAL
<Binary Data goes here>



The first line is the number of dimensions
Second line is the size on each dimension
Third line is the intervoxel spacing on each dimension
Fourth line is the type of the binary data, (unsigned
short in this example)
Fifth line is the MSB order (machine dependent), so
the MetaImage Library will correct for this.
Sixth line indicates that the binary data is contained
in this same file (it could also be placed in another
file).

The binary data starts just after the word "LOCAL".


This is really the minimum that any RAW format should
supply to make files readable.




----


Luis