Nifti tool: Difference between revisions
Jump to navigation
Jump to search
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... |
No edit summary |
||
| Line 3: | Line 3: | ||
Here are a couple common commands: | Here are a couple common commands: | ||
* <tt>nifti_tool -disp_hdr -infiles foo.nii<tt> --- display the entire header. Check the [http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/ NIfTI header field documentation] to understand what you see. | * <tt>nifti_tool -disp_hdr -infiles foo.nii</tt> --- display the entire header. Check the [http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/ NIfTI header field documentation] to understand what you see. | ||
* <tt>nifti_tool -disp_hdr -field bar -infiles foo.nii<tt> --- display just header field ''bar''. | * <tt>nifti_tool -disp_hdr -field bar -infiles foo.nii</tt> --- display just header field ''bar''. | ||
* <tt>nifti_tool -check_hdr -infiles foo.nii<tt> --- check the header for problems | * <tt>nifti_tool -check_hdr -infiles foo.nii</tt> --- check the header for problems | ||
* <tt>nifti_tool -check_nim -infiles foo.nii<tt> --- check the image structure for problems | * <tt>nifti_tool -check_nim -infiles foo.nii</tt> --- check the image structure for problems | ||
* <tt>nifti_tool -help</tt> --- dump the entire user doc for the tool. Pipe to <tt>less</tt> if you want an easy way to browse this. | |||
[[Category:Diffusion MRI]][[Category:User Documentation]] | [[Category:Diffusion MRI]][[Category:User Documentation]] | ||
Revision as of 21:04, 2 March 2009
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
- nifti_tool -help --- dump the entire user doc for the tool. Pipe to less if you want an easy way to browse this.