bounds {neuroim} | R Documentation |
Generic function to extract the spatial bounds (origin + dim * spacing) of an image param x the object
Description
Generic function to extract the spatial bounds (origin + dim * spacing) of an image param x the object
bounds
Usage
bounds(x)
## S4 method for signature 'BrainSpace'
bounds(x)
## S4 method for signature 'BrainData'
bounds(x)
Arguments
x |
the object with |
Value
a matrix
where each row contains the min (column 1) and max (column 2) bounds of the image dimension from 1 to ndim(image)
.
Examples
bspace <- BrainSpace(c(10,10,10), c(2,2,2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2
[Package neuroim version 0.0.6 Index]