Compute NIFTI dim field for data dimension.
nifti.datadim.to.dimfield(datadim)
datadim | integer vector, the result of calling `dim` on your data. The length must be <= 7. |
---|
NIFTI header `dim` field, an integer vector of length 8
Other NIFTI helper functions:
nifti.datadim.from.dimfield()
nifti.datadim.to.dimfield(c(256, 256, 256));
#> [1] 3 256 256 256 1 1 1 1