Q2R | R Documentation |
Generate a (proper) rotation matrix from a quaternion.
Q2R(Q,qfac)
Q |
quaternion vector |
qfac |
qfac nifti field. It is pixdim[1] |
The rotation.
R2Q
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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.