Learn R Programming

freesurferformats (version 1.0.1)

nifti.dtypebitpix.info.from.mgh.dtype: Compute the 'datatype' and 'bitpix' fields used in the NIFTI1 header from an MGH/MGZ datatype code.

Description

Compute the 'datatype' and 'bitpix' fields used in the NIFTI1 header from an MGH/MGZ datatype code.

Usage

nifti.dtypebitpix.info.from.mgh.dtype(mgh_dtype_code)

Value

named list with entries: `datatype` and `bitpix` containing the translated data for the respective NIfTI-1 header fields.

Arguments

mgh_dtype_code

integer, the MGH/MGZ datatype code (as returned by `translate.mri.dtype`).