View source: R/read_dwi_gradients.R
| read.dti.bvec | R Documentation |
Reads the diffusion gradient directions of a diffusion MRI dataset, i.e. the b-vectors part of the FSL bvecs/bvals format. The file contains unit vectors (or zero vectors for the b=0 volumes), stored as three rows of n values, one row per component, one column per volume.
read.dti.bvec(filepath, layout = "auto")
filepath |
character string, path to the b-vectors file, typically
ending in |
layout |
character string, one of 'auto', 'components' or 'volumes'.
|
a numeric matrix with n rows and 3 columns, one row per volume, the
columns being the x, y and z component of the gradient direction. Note that
these vectors are given with respect to the image axes, not to the
scanner axes, so they are only meaningful together with the image they
belong to: converting them to scanner space requires the transform of that
image. Use read.dti.gradients to read
b-vectors and b-values together, with consistency checks.
The b-vectors are returned exactly as they are stored, i.e. they are
not renormalized, and missing values (see
read.dti.gradients) are not replaced here.
Other dti functions:
read.dti.bval(),
read.dti.grad(),
read.dti.gradients(),
write.dti.bval(),
write.dti.bvec(),
write.dti.grad()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.