Skip to content
Matthew Brett edited this page Jul 11, 2015 · 3 revisions

BIAP3 - a JSON nifti header extension

Status

Ongoing

Background

DICOM files in particular have a lot of information in them that we might want to carry with the image. There are other image file types like Minc or Nrrd that have information we'd like to support but can't with standard nifti.

One obvious place to store this information is in a nifti header extension.

Nifti extension types

From adding nifti extensions:

Options for us

Summary: we need probably need our own extension format

There is a DICOM type extension - code 2. This might be OK for DICOM but:

  1. We probably don't want to have to dump the entire DICOM header for every DICOM image. If we don't that means we have to edit the DICOM header, and
  2. The DICOM format is awful to work with, so it is not a pleasant prospect making a new DICOM header for images (like Minc) that aren't DICOM to start with.
  3. I (MB) can't find any evidence that it's being used in the wild.
  4. It's not completely clear what format the data should be in. See this nifti thread.

The AFNI extension format looks as if it is specific to AFNI.

The XCEDE format looks rather heavy. I'm (MB) trying to work out where the most current schema is. Candidates are bxh-xcede-tools and the xcede website. We'd need to validate the XML with the schema. It appears the python standard library doesn't support that so we'd need extra XML tools as a dependency.

JIM is closed source.

fiswidgets seems to have been quiet recently. The link for code 12 is dead, I had to go back to the http://www.archive.org to get an old copy and that didn't have the DTD or example links that we need to understand the format.

Learning from NRRDs

Gordon Kindlmann's NRRD format has gone through a few versions and has considerable use particularly by the 3D slicer team. I've tried to summarize the NRRD innovations not properly covered by nifti in nifti-nrrd.

Proposal

See json-header-extension.

Clone this wiki locally