bounds | R Documentation |
This function extracts the spatial bounds (origin + dim * spacing) of an image represented by the input object.
bounds(x)
## S4 method for signature 'NeuroSpace'
bounds(x)
x |
The object with the 'bounds' property, typically an image. |
A matrix where each row contains the min (column 1) and max (column 2) bounds of the image dimension from 1 to 'ndim(image)'.
bspace <- NeuroSpace(c(10, 10, 10), c(2, 2, 2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.