Retrieve one header extension from a NIFTI v2 header, by its extension code. See nifti2.extension for details on header extensions.
Arguments
- niiheader
named list, a NIFTI v2 header as returned by
read.nifti2.headeror created byni2header.template.- ecode
integer, the extension code to search for. The CIFTI2 XML metadata uses code
32L.
Value
the extension (a named list with entries 'ecode' and 'content', see nifti2.extension), or NULL if the header contains no extension with this code.
See also
Other nifti2 extensions:
nifti2.extension(),
nifti2.extension.content(),
nifti2.extension.size(),
nifti2.extension.text()