Description Usage Arguments Value See Also Examples
Generate a (proper) rotation matrix from a quaternion.
1 | Q2R(Q,qfac)
|
Q |
quaternion vector |
qfac |
qfac nifti field. It is pixdim[1] |
The rotation.
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])
|
Loading required package: R.matlab
R.matlab v3.6.2 (2018-09-26) successfully loaded. See ?R.matlab for help.
Attaching package: 'R.matlab'
The following objects are masked from 'package:base':
getOption, isOpen
Loading required package: fastICA
Loading required package: tcltk
Loading required package: tkrplot
Warning messages:
1: no DISPLAY variable so Tk is not available
2: loading Rplot failed
[,1] [,2] [,3]
[1,] -1 0 0
[2,] 0 1 0
[3,] 0 0 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.