NeuroSpace | R Documentation |
NeuroSpace
classConstructor function for NeuroSpace
class
NeuroSpace(dim, spacing = NULL, origin = NULL, axes = NULL, trans = NULL)
dim |
An integer vector describing the dimensions of the image grid. |
spacing |
A numeric vector representing the real-valued voxel dimensions (e.g., in millimeters). If not provided, the default is set to a vector of ones with the same length as the dimensions. |
origin |
A numeric vector representing the coordinate origin of the image space. If not provided, the default is set to a vector of zeroes with the same length as the dimensions. |
axes |
An |
trans |
A matrix representing the coordinate transformation associated with the image space. If not provided, the default is based on the NIFTI standard ("Neurological" orientation). |
An instance of the NeuroSpace
class.
Users rarely need to create a new NeuroSpace
instance, as it will almost always be created automatically using information stored in an image header. If an existing image object is available, its NeuroSpace
instance can be easily extracted with the space
method.
bspace <- NeuroSpace(c(64, 64, 64), origin = c(0, 0, 0), spacing = c(2, 2, 2))
bspace
origin(bspace)
axes(bspace)
trans(bspace)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.