spacing | R Documentation |
This function extracts the voxel dimensions of an image represented by the input object.
spacing(x)
## S4 method for signature 'ROICoords'
spacing(x)
## S4 method for signature 'NeuroObj'
spacing(x)
## S4 method for signature 'NeuroSpace'
spacing(x)
x |
The object representing the image. |
A numeric vector containing the voxel dimensions of the image.
bspace <- NeuroSpace(c(10, 10, 10), c(2, 2, 2))
all.equal(spacing(bspace), c(2, 2, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.