Learn R Programming

AnalyzeFMRI (version 1.1-24)

fps2diminfo: fps2diminfo

Description

Encode freq.dim, phase.dim and slice.dim fields into the one byte dim.info field of a NIFTI header file.

Usage

fps2diminfo(freq.dim,phase.dim,slice.dim)

Arguments

freq.dim

freq.dim field of a NIFTI file

phase.dim

phase.dim field of a NIFTI file

slice.dim

slice.dim field of a NIFTI file

Value

A list containing dim.info field.

See Value Section of the help file of function diminfo2fps().

See Also

diminfo2fps

Examples

Run this code
# NOT RUN {
dim.info <- f.read.header(system.file("example-nifti.hdr", package="AnalyzeFMRI"))$dim.info
mylist <- diminfo2fps(dim.info)
fps2diminfo(mylist$freq.dim,mylist$phase.dim,mylist$slice.dim)
# }

Run the code above in your browser using DataLab