Reference implementation of NIfTI Mind extensions (ref: http://www.ncbi.nlm.nih.gov/pubmed/20206274). The original version was not in the public domain, so this version is based on the nifti reference implementation, and in the public domain.