NeuroSpace-class | R Documentation |
Represents the geometry of a brain image.
dim
An integer vector representing the grid dimensions of the image.
origin
A numeric vector representing the coordinates of the spatial origin.
spacing
A numeric vector representing the dimensions (in mm) of the grid units (voxels).
axes
A named AxisSet
object representing the set of spatial axes in the untransformed native grid space.
trans
A matrix representing an affine transformation that converts grid coordinates to real-world coordinates.
inverse
A matrix representing an inverse transformation that converts real-world coordinates to grid coordinates.
The NeuroSpace
object is considered valid if:
- The length of the @dim slot is equal to the lengths of the @spacing, @origin, and number of axes in the @axes slots.
- The @dim slot contains non-negative values.
The NeuroSpace
class is used to store and manipulate the geometric properties of a brain image.
# Create a NeuroSpace object
space <- NeuroSpace(dim=as.integer(c(64, 64, 64)), origin=c(0, 0, 0), spacing=c(1, 1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.