powered by
This function extracts the spatial bounds (origin + dim * spacing) of an image represented by the input object.
bounds(x)# S4 method for NeuroSpace bounds(x)
# S4 method for NeuroSpace bounds(x)
A numeric matrix with two columns specifying the min (column 1) and max (column 2) bounds of each dimension of x.
matrix
x
The object with the `bounds` property, typically an image.
bspace <- NeuroSpace(c(10, 10, 10), c(2, 2, 2)) b <- bounds(bspace) nrow(b) == ndim(bspace) ncol(b) == 2
Run the code above in your browser using DataLab