} TutorialRawInput
ITK-SNAP Logo

Latest News:
04/22/24: ITK-SNAP 4.2.0 has been released!

Reading images in raw data format

SNAP provides support for reading 3D images from raw data. The user must specify information about how data in the file is organized. Specifically, the user must provide the following pieces of information

  • The size of the image header. This is the number of bytes of data that precedes the location in the image file where the intensity of the first voxel in the image volume is encoded.
  • The dimensions of the 3D image volume.
  • The size of the voxel in millimeters.
  • The data type used to store information about each voxel (byte, short, float). If you are not sure, you can estimate this by dividing the number of bytes in the file, minus the header size, by the product of the dimensions. If the result is 1, then the data type is byte or unsigned byte; if it's 2, then the data type is short or unsigned short; if it's 4, then the data type is int, unsigned int, or float; and if it's 8, the data type is long, unsigned long, or double.
  • The endianness of the data representation. See this link about the meaning of endianness. If you aren't sure, try each of the options and see which one works.
Page last modified on May 30, 2011, at 12:37 PM

    SourceForge.net Logo   Valid XHTML 1.0 Transitional