View source: R/transforms_common.R
| volume.descriptor | R Documentation |
Transformation files often record the geometry of the volumes they relate, either completely (an
LTA file stores the voxel dimensions, the voxel sizes and the voxel-to-RAS direction vectors of both volumes)
or not at all. This helper turns that information into the src and dst descriptors of an fs.transform.
The frame entry states which RAS coordinates the vox2ras matrix produces: 'scanner' means that the matrix
is used as given (this is what an LTA file records), and 'tkreg' means FreeSurfer tkregister coordinates,
which are RAS coordinates with an identity rotation and the origin at the center of the volume. A descriptor
may be partial, e.g. when only the target is known to be in tkregister space.
volume.descriptor(
path = NULL,
dim = NULL,
voxelsize = NULL,
xras = NULL,
yras = NULL,
zras = NULL,
cras = NULL,
vox2ras = NULL,
frame = "scanner",
valid = NULL
)
path |
|
dim |
|
voxelsize |
|
xras |
|
yras |
|
zras |
|
cras |
|
vox2ras |
|
frame |
character string, either 'scanner', 'tkreg' or 'fsl', see the description. |
valid |
|
NULL if no information was given, a named list describing the volume otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.