Learn R Programming

AnalyzeFMRI (version 1.1-11)

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

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 Also

diminfo2fps

Examples

Run this code
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