Description Usage Arguments Value See Also Examples
Extract freq.dim, phase.dim and slice.dim fields from the one byte dim.info field of a NIFTI header file.
1 | diminfo2fps(dim.info)
|
dim.info |
dim.info field of a NIFTI header file |
A list containing freq.dim
, phase.dim
and slice.dim
fields.
These are provided to store some extra information that is sometimes important when storing the image data from an FMRI time series experiment. (After processing such data into statistical images, these fields are not likely to be useful.) These fields encode which spatial dimension (1,2, or 3) corresponds to which acquisition dimension for MRI data.
Examples:
Rectangular scan multi-slice EPI:
freq_dim
= 1 phase_dim
= 2 slice_dim
= 3 (or some permutation)
Spiral scan multi-slice EPI:
freq_dim
= phase_dim
= 0 slice_dim
= 3
since the concepts of frequency- and phase-encoding directions
don't apply to spiral scan.
The fields freq.dim
, phase.dim
, slice.dim
are all
squished into the single byte field dim.info
(2 bits each, since the
values for each field are limited to the range 0..3). This
unpleasantness is due to lack of space in the 348 byte allowance.
1 2 | dim.info <- f.read.header(system.file("example-nifti.hdr", package="AnalyzeFMRI"))$dim.info
diminfo2fps(dim.info)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.