Nifti tool

From VrlWiki
Revision as of 21:01, 2 March 2009 by Jadrian Miles (talk | contribs) (New page: '''<tt>nifti_tool</tt>''' is a command-line tool for interacting with NIfTI metadata. It is a very useful way to interactively view the metadata; it's also powerful for editing metada...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

nifti_tool is a command-line tool for interacting with NIfTI metadata. It is a very useful way to interactively view the metadata; it's also powerful for editing metadata interactively, but we don't tend to do that. nifti_tool is part of the reference NIfTI library implementation and its source code is in the public domain.

Here are a couple common commands:

  • nifti_tool -disp_hdr -infiles foo.nii --- display the entire header. Check the NIfTI header field documentation to understand what you see.
  • nifti_tool -disp_hdr -field bar -infiles foo.nii --- display just header field bar.
  • nifti_tool -check_hdr -infiles foo.nii --- check the header for problems
  • nifti_tool -check_nim -infiles foo.nii --- check the image structure for problems