View source: R/read_dwi_gradients.R
| read.dti.grad | R Documentation |
Reads a diffusion gradient table in MRtrix format: a plain text
file with one line per DWI volume, each line holding the four
space-separated values [ x y z b ], with the direction in scanner
space and the b-value in s/mm^2. This is the format expected by the
-grad option of the MRtrix3 commands (and produced by
-export_grad_mrtrix), and it is also the format in which MRtrix3 stores
the table in the dw_scheme entry of a .mif header. A first line
consisting of a single integer is accepted as a volume count header.
read.dti.grad(filepath, layout = "auto")
filepath |
character string, path to the file. There is no fixed file
name convention, |
layout |
character string, one of 'auto', 'components' or 'volumes'.
|
a numeric matrix with n rows and 4 columns named 'x', 'y', 'z' and 'b', one row per volume. The directions are in scanner space.
Other dti functions:
read.dti.bval(),
read.dti.bvec(),
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.