MetaImage File Format


    Use the following format for an mha image header file:

      ObjectType = Image
      NDims = 3
      BinaryData = True
      BinaryDataByteOrderMSB = False
      TransformMatrix = 1 0 0 0 1 0 0 0 1
      Offset = 0 0 0
      CenterOfRotation = 0 0 0
      AnatomicalOrientation = RPI
      ElementSpacing = 1 1 1
      DimSize = 181 217 180
      ElementNumberOfChannels = 3
      ElementType = MET_UCHAR
      ElementDataFile = file.raw

Last updated March 22, 2007