Recent Changes - Search:

Homepage

This is the old Camino website, please visit our new page to download the code and get the latest documentation.









UCL MIG Home

UCL CS Home

UCL Home

edit SideBar

Man /

Niftiheader

Content-type: text/html Manpage of niftiheader

niftiheader

Section: User Commands (1)
Index Return to Main Contents

 

NAME

niftiheader - Read a NIFTI-1 header and print the header attributes.

 

SYNOPSIS

niftiheader -readheader <image file>

 

DESCRIPTION

Reads a NIFTI-1 header and outputs the standard header fields as text, or create a new header.

For explanation of the NIFTI-1 standard, please see http://nifti.nimh.nih.gov/nifti-1


                    

 

EXAMPLES

Unlike analyzeheader, we require an output file name to determine header type.


  niftiheader -initfromheader image.nii -qform 1 1 0 0 0 10 20 30 -outputfile newqform.nii

[ TIONS ]

-readheader <file>
Reads header information from file and prints to stdout. If this option is not specified, then the program writes a header based on the other arguments.

-initfromheader <file>
Uses an existing header to initialize a new header.

-datatype <type>
Sets the datatype to a Camino data type. The argument type is a string eg double, float, int.

-intent <code>
Sets the intent code.

-networkbyteorder
Sets the header byte order to network (big-endian).

-intelbyteorder
Sets the header byte order to intel (little-endian), as used by most PCs and Macs.

-scaleslope <code>
Sets the scale slope.

-scaleinter <code>
Sets the scale intercept.

-dims <n> <dim1> ... <mn>
Sets the data dimensionality to n dimensions, and sets the size of each. For example, "-dims 3 128 128 60". The maximum number of dimensions is 7.

-pixdims <n> <qfac> <dim1> ... <mn>
Sets the pixel dimensions and qfactor.

-qform <qform_code> <qfac> <quaternb> <quaternc> <quaternd> <qoffset_x> <qoffset_y> <qoffset_z>
Sets the qform parameters.

-sform <sform_code> <sform_11> <sform_12> ... <sform_44>
Sets the sform code and sform matrix, by row.

-outputfile <file>
Sets the output file.

 

AUTHORS

Philip Cook <camino@cs.ucl.ac.uk>

This program uses some code from the public-domain niftijlib code by Kate Fissell, University of Pittsburgh.

 

SEE ALSO

dt2nii(1), nii2dt(1)

 

CAVEATS

The program cannot modify existing headers in place. To modify an existing header, you would need to do

gunzip image.nii.gz

niftiheader -initfromheader image.nii ... -outputfile tmp.nii

shredder 352 1 0 < image.nii > data.raw

cat tmp.nii data.raw > newImage.nii

NIfTI .nii headers and .hdr headers are not interchangeable. You cannot do the above with a .hdr file, because it will be missing the extension field (a .nii header is 352 bytes, not 348 as for .hdr).


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
AUTHORS
SEE ALSO
CAVEATS

This document was created by man2html, using the manual pages.
Time: 02:07:11 GMT, December 04, 2017

Edit - History - Print - Recent Changes - Search
Page last modified on October 26, 2009, at 02:57 PM