bounds {neuroim} | R Documentation |
Generic function to extract the spatial bounds (origin + dim * spacing) of an image param x the object
bounds
bounds(x)
## S4 method for signature 'BrainSpace'
bounds(x)
## S4 method for signature 'BrainData'
bounds(x)
x |
the object with |
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 <- BrainSpace(c(10,10,10), c(2,2,2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2