<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://stage.nitrcce.org/export/rss20_forum.php?forum_id=1942" ?>
<?xml-stylesheet type="text/css" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC NIfTI Forum: extending_nifti</title>
  <link>http://stage.nitrcce.org/forum/forum.php?forum_id=1942</link>
  <description>Extending the NIfTI format</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Sun, 05 Apr 2026 8:24:43 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>JNIfTI - a JSON/binary JSON based format for storing neuroimaging data</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10311&amp;forum_id=1942</link>
   <description>hi everyone, &lt;br /&gt;
&lt;br /&gt;
(I previously posted this message on this Github discussion thread, but would love to share it here as well&lt;br /&gt;
https://github.com/bids-standard/bids-specification/issues/197#issuecomment-502137331 )&lt;br /&gt;
&lt;br /&gt;
I just want to let everyone know I am currently working on a new neuroimaging data interchange format, called JNIfTI.&lt;br /&gt;
&lt;br /&gt;
My current draft of the file specification can be found at&lt;br /&gt;
&lt;br /&gt;
https://github.com/fangq/jnifti/&lt;br /&gt;
&lt;br /&gt;
together you can find a matlab nifti-1/2 to jnifti converter and jnii/bnii data samples.&lt;br /&gt;
&lt;br /&gt;
https://github.com/fangq/jnifti/blob/master/lib/matlab/&lt;br /&gt;
https://github.com/fangq/jnifti/tree/master/samples&lt;br /&gt;
&lt;br /&gt;
The basic idea is to use JSON and binary JSON (UBJSON) format to store complex scientific data, and completely get rid of a rigid, difficult-to-extend binary header. This makes the data readable, easy to extend and mixing with scientific data from other domains (like multi-modal data, physiology recordings, or computational models etc). There are also numerous JSON/UBJSON parsers out there, so, without writing any new code, a JNIfTI file can be readily parsed by these existing codes.&lt;br /&gt;
&lt;br /&gt;
JNIfTI is designed with a compatibility layer to 100% translate the NIFTI-1/2 header/data/extension to the new structure, but once it is moved to JSON, you gain enormous flexibility to add new metadata, header info, organizing multiple datasets inside one document etc. I'd love to hear from this community, what additional information that are current lacking, and happy to accept proposals on defining new &amp;quot;required&amp;quot; metadata headers in to this format. My preference is to gradually shift the main metadata container from the NIFTIHeader structure to the &amp;quot;_DataInfo_&amp;quot; and &amp;quot;Properties&amp;quot; subfields in NIFTIData as the primary containers for metadata. This provides an opportunity to completely redesign the header entries.&lt;br /&gt;
&lt;br /&gt;
https://github.com/fangq/jnifti/blob/master/JNIfTI_specification.md#structure-form&lt;br /&gt;
&lt;br /&gt;
look forward to hearing from you.&lt;br /&gt;
&lt;br /&gt;
PS: The foundation of the JNIfTI format is another specification called JData - a proposal to systematically serialize complex data structures, such as N-D arrays, trees, graphs, linked lists etc. The JData specification is current in Draft 1, and can be found at&lt;br /&gt;
&lt;br /&gt;
https://github.com/fangq/jdata/</description>
   <author>Qianqian Fang</author>
   <pubDate>Tue, 18 Jun 2019 14:40:07 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10311&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
Just a note that NIFTI_XFORM_TEMPLATE_OTHER is supported in nibabel 2.4.0+.&lt;br /&gt;
&lt;br /&gt;
Chris</description>
   <author>Christopher Markiewicz</author>
   <pubDate>Tue, 02 Apr 2019 2:35:02 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi, Guillaume-&lt;br /&gt;
&lt;br /&gt;
Great, glad that is doable.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
pt</description>
   <author>paul taylor</author>
   <pubDate>Mon, 18 Mar 2019 12:52:03 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hello,&lt;br /&gt;
&lt;br /&gt;
The suggested change looks good to us and we will update the SPM NIfTI library accordingly.&lt;br /&gt;
&lt;br /&gt;
Best,&lt;br /&gt;
Guillaume.</description>
   <author>Guillaume Flandin</author>
   <pubDate>Mon, 18 Mar 2019 11:48:02 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi, Mark-&lt;br /&gt;
&lt;br /&gt;
Great, thanks for the comments and glad to know that it seems like a positive idea to you.&lt;br /&gt;
&lt;br /&gt;
And yes, the initial post's phrasing just mentioned the sform_code, but we certainly mean to apply it equivalently to qform_code values, which, as you note, should typically (if not always?) match.  &lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
pt</description>
   <author>paul taylor</author>
   <pubDate>Sat, 16 Mar 2019 20:00:58 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>I think the new code makes a lot of sense and would be fine with FSL.  I'd definitely avoid using the unknown code, as this would cause problems for FSL too.  I would support having the code available for qforms too, as it is quite common for users to want both the qform and sform to be the same.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
    MJ</description>
   <author>Mark Jenkinson</author>
   <pubDate>Sat, 16 Mar 2019 8:36:35 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi Chris,&lt;br /&gt;
&lt;br /&gt;
We were planning to do it soon, now that people have had a chance to voice any concerns.  Posting a message to this thread once done might be the only additional announcement.&lt;br /&gt;
&lt;br /&gt;
That path to nifti1.h under AFNI will indeed be updated, though the main NIFTI repository list is now on github under https://github.com/NIFTI-Imaging , where nifti1.h is at https://github.com/NIFTI-Imaging/nifti_clib/blob/master/niftilib/nifti1.h .  nifti_clib is its own repo, for example.  &lt;br /&gt;
&lt;br /&gt;
Soon we will remove those trees from AFNI.&lt;br /&gt;
&lt;br /&gt;
- rick</description>
   <author>Richard Reynolds</author>
   <pubDate>Fri, 08 Mar 2019 17:57:01 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi Paul, Rick,&lt;br /&gt;
&lt;br /&gt;
What's the timeline and process for this change? I assume it'll show up in https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h once ratified? Will there be other announcements to watch for?&lt;br /&gt;
&lt;br /&gt;
Chris</description>
   <author>Christopher Markiewicz</author>
   <pubDate>Fri, 08 Mar 2019 16:36:09 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>FreeSurfer does not use this field, so it should have no effect on our code</description>
   <author>doug greve</author>
   <pubDate>Fri, 01 Mar 2019 16:06:40 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
  <item>
   <title>RE: Proposed (minor) update for NIFTI sform values</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</link>
   <description>Hi Chris,&lt;br /&gt;
&lt;br /&gt;
NIFTI_XFORM_TEMPLATE_OTHER seems like a nice choice.&lt;br /&gt;
&lt;br /&gt;
Yes, this would apply to both qform and sform.  We do the same thing with synchronizing them.&lt;br /&gt;
&lt;br /&gt;
- rick</description>
   <author>Richard Reynolds</author>
   <pubDate>Thu, 28 Feb 2019 20:51:20 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10029&amp;forum_id=1942</guid>
  </item>
 </channel>
</rss>
