Description Usage Arguments Value See Also Examples
Convert from (proper) rotation matrix to quaternion form.
1 |
R |
Rotation matrix |
qfac |
qfac nifti field. It is pixdim[1]. If NULL, R is transformed to have determinant 1 |
The quaternion.
1 2 3 4 5 | L <- f.read.nifti.header(system.file("example-nifti.hdr", package="AnalyzeFMRI"))
Q <- c(L$quatern.b,L$quatern.c,L$quatern.d)
R <- Q2R(Q,L$pixdim[1])
Q
R2Q(R)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.