AIMS: SPM format notes



SPM images IO: ***CAUTION***, behaviour change in AIMS 3.1

Date: 2008/01/05

The default settings in AIMS now conform to the SPM2 behaviour, not SPM99 anymore. This affects Aims, Anatomist, Vip and all of our software. User-level options can still override this, of course.
Read the config files documentation.
However to avoid problems, it is recommended to avoid the SPM/Analyze format and to use NIFTI-1 instead: NIFTI is the new standard format used by SPM5, FSL and several other software. Unfortunately NIFTI-1 was not supported in AIMS 3.0 and prior versions. 3.1 supports NIFTI-1.

SPM images IO: ***CAUTION***, behaviour change in AIMS 2.13

Date: 26/11/2003

Image orientation

As SPM2 changed its image storage conventions regarding neurological / radiological images storage compared to SPM99, we had to do something quite similar, but it's kind of a mess: We can't automatically know when reading an image, so YOU have to tell what happened to your images (see below).
In AIMS/Anatomist, it' another mess:

Be careful, any mistake in these options can result in flipped images with left and right switched. This is not always visible at the first sight and can mess a whole study if you don't pay attention to that.

Warning: VIP library and commands have not changed, they are still in "SPM99/radiological" mode.

4D volumes

SPM99 could not read 4D Analyze/SPM images. It used to read/write series of 3D volumes, so a 4D volume had to be split. SPM2 now supports 4D volumes.

AIMS 2.12 and earlier versions followed SPM rule when writing 4D volumes: they were split into a series of 3D volumes. Aims 2.13 is able to write 4D volumes that can be read by SPM2. The behaviour of AIMS is determined by an option in the settings file: spm_output_4d_volumes. This variable is 1 if not specified (4D enabled), but is disabled by default in the global config file going with the AIMS 2.13 distribution so as to keep complete compatibility with SPM99.

4D Volumes saved as 3D series can now be read as a 4D volume if:

  • they were saved by AIMS 2.13 or later
  • the first volume of the series is given as input to Aims or Anatomist
  • Aims 2.13 saves indications about the series (timesteps number, files in the series) in the .minf header of the first 3D volume.

    Note: AIMS 2.12 and earlier had a bug and did not write correctly 4D volumes as a series, the .minf meta-header should be removed from those volumes, and they cannot be re-read as a 4D volume (unless the .minf is manually fixed).