Q2R: Quaternion to rotation

Description Usage Arguments Value See Also Examples

View source: R/niftiFMRI.R

Description

Generate a (proper) rotation matrix from a quaternion.

Usage

1
Q2R(Q,qfac)

Arguments

Q

quaternion vector

qfac

qfac nifti field. It is pixdim[1]

Value

The rotation.

See Also

R2Q

Examples

1
2
3
L <- f.read.nifti.header(system.file("example-nifti.hdr", package="AnalyzeFMRI"))
Q <- c(L$quatern.b,L$quatern.c,L$quatern.d)
Q2R(Q,L$pixdim[1])

AnalyzeFMRI documentation built on May 29, 2017, 7:49 p.m.

Search within the AnalyzeFMRI package
Search all R packages, documentation and source code