Introduction
NIfTI-1 is a data format for neuroimaging. It is derived from the Analyze 7.5 format and uses unused space in the Analyze header for its new features, so that some older software can still read the files.
NIfTI-2 is a 64-bit update of it for large images and matrices. It keeps the same information and adds no new fields. It does not replace NIfTI-1, which is still supported alongside it.
Structure
The data is stored either as a single .nii file or as a pair of files, a
.hdr header and an .img image. Additions over Analyze include
an affine mapping from voxels to space, slice ordering codes, more data types and
header extensions.
The first four bytes of the header hold its size as a 32-bit integer: 348 in NIfTI-1
and 540 in NIfTI-2, in either byte order. NIfTI-2 widens most numeric fields (the
dimensions become 64-bit integers), drops some unused fields, and has an 8-byte magic
string at offset 4, beginning n+2 or ni2. In NIfTI-1 the
magic string is at offset 344.
Not described
Known, not yet covered
- Reference: this page is a summary; the header fields are not yet described on this site.
- Viewer: the site has no viewer for NIfTI data.
Links
Reference
- NIfTI-1 Data Format – the Neuroimaging Informatics Technology Initiative
- NIfTI-2 Data Format – the initiative’s page on the 64-bit update
- A 64-bit update to the NIfTI format – the NIfTI-2 header changes, at NITRC