Learn R Programming

ciftiTools (version 0.18.0)

Tfmat_from_qform: Derive transformation matrix from qform metadata in NIFTI header

Description

Sources: afni.nimh.nih.gov/pub/dist/doc/nifti/nifti1_h.pdf, brainder.org/2012/09/23/the-nifti-file-format/, nipy.org/nibabel/nifti_images.html, brainvoyager.com/bv/doc/UsersGuide/CoordsAndTransforms/CoordinateSystems.html

Usage

Tfmat_from_qform(pixdim, quatern_bcd, qoffset_xyz)

Value

4 by 4 transformation matrix

Arguments

pixdim

Numeric vector of length 8. Only the first four entries are used.

quatern_bcd

Numeric vector of length 3, giving quaterns b, c, and d.

qoffset_xyz

Numeric vector of length 3, giving qoffsets x, y, and z.