View source: R/write_dwi_gradients.R
| write.dti.grad | R Documentation |
Writes a diffusion gradient table to a plain text file with one
line per DWI volume, each line holding the four space-separated values
[ x y z b ]. This is the format that the -grad option of the MRtrix3
commands expects, and the format of the dw_scheme entry in the header of
a .mif image.
write.dti.grad(filepath, bvec, bval = NULL, layout = "volumes")
filepath |
character string, path to the output file. Files ending in
|
bvec |
numeric matrix with 3 columns (one row per volume) or 3 rows (one
column per volume), the gradient directions. Alternatively a full gradient
table, i.e. a numeric matrix with 4 columns named or ordered 'x', 'y', 'z'
and 'b', as returned by
|
bval |
numeric vector, the b-value of each volume, in s/mm^2. Ignored if
|
layout |
character string, one of 'volumes' or 'components'. |
NULL, invisibly. Called for the side effect of writing the file.
Other dti functions:
read.dti.bval(),
read.dti.bvec(),
read.dti.grad(),
read.dti.gradients(),
write.dti.bval(),
write.dti.bvec()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.