Previous Topic

Next Topic

Book Contents

Book Index

Image Data Formats

PMOD supports a big number of image data formats in reading, and a subset also in writing. As described below the data formats have different properties. Some formats support additional information to the image such as:

Transfer Syntax

The image pixel values must be numerically encoded in a file. There are different variants, and some formats allow the user to choose among them. In these cases a dialog window is shown with a Transfer syntax selection such as

The selections are composed of two parts. The first part (WORD or FLOAT) determines how accurately numbers are saved. WORD uses 2 bytes and is thus only able to resolve 65536 different values. FLOAT uses 4 bytes and writes floating numbers with the same accuracy as in PMOD's internal representation. Therefore, FLOAT is recommended to avoid rounding errors, although the space requirement is twice that of WORD.

The second part (BE or LE) determines the arrangement of the bytes (byte ordering). The byte ordering is different among processors (LE = little endian, on Intel and DEC Alpha processors; BE = big endian, for most other processors). For PMOD the number encoding does not matter, it will read them all. For other programs, however, there may be preferred formats.

Autodetect (Read only)

For users working with different image formats it my be cumbersome to remember the data format of the different files, which may have similar suffixes. The Autodetect format makes it unnecessary to select a specific format before image loading. The user can just select the file(s) he wants to load, and PMOD will try to find out the appropriate format based on the file contents (not on the suffix) when loading.

DICOM (Read/Write)

Image data according to the DICOM standard. As input data, the following Information Objects have been tested: Nuclear Medicine, Magnetic Resonance, Ultrasound, CT, PET, MR. As output data, images are always saved as Secondary capture DICOM files with different IODs. Entered acquisition times will be stored with the created DICOM files.

PMOD's DICOM Conformance Statement describes in detail the DICOM support implemented in PMOD. It can be downloaded from the Support page on the PMOD Website.

Database (Read/Write)

Data loading/saving with a PMOD database. Image data stored in the database are always in DICOM format as Recon Gated Tomo NM DICOM objects which allow efficient loading of large dynamic data sets. If the import format was a DICOM IOD (eg. CT IOD) then this IOD definition will be used for saving. All other image data will be saved as NM DICOM IODs.

Query (Read only)

This loading "format" is a shortcut for retrieving images from a remote DICOM server and directly loading them to the image display.

Interfile (Read/Write)

Interfile is a file format developed for data in Nuclear Medicine (Todd-Pokropek A, Cradduck TD, Deconinck F, A file format for the exchange of nuclear medicine image data: a specification of Interfile version 3.3, Nucl Med Commun. 1992 Sep;13(9):673-99).

There are two basic variants of Interfile. One variant has separate header (.hdr) and image (.img) files. This variant has the advantage that the header file can be viewed and edited with a simple text editor. The other variant includes all the information in a single file (.hdr). Both variants are supported in reading and writing, restricted to the subset of data objects which are relevant for PET.

Ecat 6/7 (Read/Write)

Data format of PET data from older CTI/Siemens systems. It is a self-contained format containing all acquisition information.

When loading Ecat data an additional choice appears to explicitly define the units of the patient dose values. This facility was introduced because Ecat files without well-defined units were encountered. Experience has shown that the Bq unit should be selected to arrive at the correct doses. The dose value is important for the SUV calculation and can be checked on the SUV-related panels.

Ecat Format Unit Selection

When saving data in the Ecat format, after the specification of the file name, a dialog is presented to the user with a choice of transfer syntaxes. They define the byte ordering used for saving the data. In case you want to read the images using a program other than PMOD, you are recommended to select a big-endian (BE) encoding.

MicroPET (Read only)

Data format of the Siemens Inveon and MicroPET preclinical systems. It is used both for PET and CT data.

NifTI (Read/Write)

Extended variant of the analyze format by the Neuroimaging Informatics Technology Initiative. Both single file (.nii) and double file (.hdr + .img) images are accepted but only in uncompressed form.

PMOD reads the following NIfTI data types:
8-bit unsigned and signed byte (DT_UINT8 and DT_INT8), 16-bit unsigned and signed short (DT_UINT16 and DT_INT16), 32-bit unsigned and signed int (DT_UINT32 and DT_INT32), 32-bit float (DT_FLOAT32), 64-bit double (DT_DOUBLE) and 24-bit RGB (DT_RGB). 64-bit double data are rounded to 32-bit float representation. Up to 4D data is supported, meaning PMOD does not accept files with the 5th dimension greater 1. Only a single value or a single RGB triplet per pixel is supported. If qform_code > 0, PMOD uses qform matrices, otherwise if sform_code > 0 sform matrices will be used. When neither is defined data orientations remain undefined in PMOD. PMOD does not support any extensions nor NIfTI statistical codes. Gzipped images must be uncompressed prior to their usage with PMOD.

NIfTI images produced by SPM require A/P mirroring (TOP to BOTTOM sorting) to get them into HFS position. Other NIfTI images should best be loaded with Reorientate to Anatomical Position enabled.

In writing, PMOD supports the variants with two files (header information in *.hdr, image data in *.img) or a composite file (*.nii). The single file variant is required when preparing atlas template images.

Analyze (Read/Write)

Data in the Analyze 7.5 format consists of two files. The header file (*.hdr) contains information about dimensions, pixel representation (transfer syntax) and value scaling. The data file (*.img) contains the pixel data itself without any header offset. Value units and information about acquisition timing must be manually entered, or can be loaded from definition files.

SPM produced Analyze files are usually L/R mirrored. Such files require a 180o rotation about the z-axis s to get them into the radiological head first supine (HFS) position which is the PMOD default.

AVW (Read only)

Newer version of the Analyze format.

Raw (Read/Write)

A raw image file which holds only the pixel data. All additional information must be edited manually. Different types of number encoding (byte, signed and unsigned short integer, float) and byte orders (big/little endian) are supported.

Graphic (Read/Write)

Graphic images in jpg, gif and bmp can be read. When writing as a Graphic file, the jpg format is used.

TIFF (Read/Write)

The graphic tiff format is treated separately and can be read and written.

Matlab (Read/Write)

Image data can be read which has been prepared and saved in Matlab using the save -V4 command (Note: only Matlab version 4 format is supported, thus the requirement of the -V4 option). The following Matlab variable names/contents are expected:

Note that only the variables dim and v1s1 etc. are mandatory.

Neurostat (Read only)

Neurostat uses the Interfile format (.hdr, .img) to save the 8 surface projections into an image file. Please note, that this is not a volumetric data set, and therefore should be viewed in a planar layout such as 2x4.

AFNI (Read only)

AFNI (acronym for Analysis of Functional NeuroImages) creates two-file data (.HEAD, .BRIK).

GE Advance (Read only)

Data format of PET data exported from GE PET systems (Advance, Discovery) with the Investigator utility. It is a self-contained format with all acquisition information.

Philips (Read only)

Mosaic data format of PET data from Philips PET (Allegro, Gemini) and older GE Quest systems.

When PMOD recognizes more than one unit defined in the file the loading dialog shows a choice selection for the user to define the correct data unit.

Philips DICOM Unit Selection

HIDAC (Read only)

Data format of the animal PET system HIDAC (Oxford Positron Systems). To be retired.