Initializes a list of fields following the NIfTI-1 specification with default
or placeholder values. Users typically call this internally via
as_nifti_header rather than using directly.
createNIfTIHeader(oneFile = TRUE, file_name = NULL)A named list containing approximately 30 fields that comprise
the NIfTI-1 header structure. Many of these are placeholders until filled by
downstream usage.
Logical; if TRUE, magic is set to "n+1"
indicating a single-file (.nii) approach. Otherwise set to "ni1".
Optional character string to store in the header, usually referencing the intended output file name.
This function sets up the skeleton of a NIfTI-1 header, including fields for
diminfo, pixdim, qform_code, magic, etc. Most fields
are initialized to zero, empty characters, or standard placeholders. The
oneFile argument controls whether "n+1" or "ni1" is used
for the magic field.
as_nifti_header for populating the returned header with actual
data from a NeuroVol.