Learn R Programming

freesurferformats (version 0.1.18)

mghheader: Constructor to init MGH header instance.

Description

Constructor to init MGH header instance.

Usage

mghheader(dims, mri_dtype_code)

Value

a named list representing the header

Arguments

dims

integer vector of length 4, the header dimensions. Example: c(256L, 256L, 256L, 1L).

mri_dtype_code

integer, a valid MRI datatype. See translate.mri.dtype.