fps2diminfo: fps2diminfo

Description Usage Arguments Value See Also Examples

View source: R/niftiFMRI.R

Description

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

Usage

1
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

1
2
3
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)

AnalyzeFMRI documentation built on Oct. 5, 2021, 5:06 p.m.