Tfmat_from_qform: Derive transformation matrix from 'qform' metadata in NIFTI...

View source: R/Tfmat_qform_conversion.R

Tfmat_from_qformR Documentation

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)

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.

Value

4 by 4 transformation matrix


ciftiTools documentation built on Dec. 20, 2025, 9:06 a.m.