| header | R Documentation |
Retrieves header metadata from neuroimaging objects or files. Returns a structured list with commonly needed fields like sform/qform matrices, TR, intent codes, and data scaling parameters.
For low-level access to all raw NIfTI header fields, use the
$raw element of the returned list.
header(x)
## S4 method for signature 'FileMetaInfo'
header(x)
## S4 method for signature 'character'
header(x)
x |
A |
A list of class "NeuroHeader" with elements:
Integer dimensions.
Voxel sizes including TR.
Spatial voxel sizes (first 3 pixdim values).
Coordinate origin.
4x4 affine transform.
List with matrix (4x4) and code (integer).
List with matrix (4x4) and code (integer).
NIfTI intent code.
NIfTI intent name string.
Description string.
Storage data type label.
Bits per pixel.
Data scaling slope.
Data scaling intercept.
Display intensity minimum.
Display intensity maximum.
Repetition time (4th pixdim), or NA if not 4D.
The complete raw header list (all NIfTI fields).
f <- system.file("extdata", "global_mask_v4.nii", package = "neuroim2")
h <- header(f)
h$dim
h$TR
h$sform
h$descrip
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.