space {neuroim} | R Documentation |
Generic function to extract geometric properties of an image.
Description
Generic function to extract geometric properties of an image.
Usage
space(x, ...)
## S4 method for signature 'BrainData'
space(x)
## S4 method for signature 'BrainSpace'
space(x)
## S4 method for signature 'IndexLookupVolume'
space(x)
Arguments
x |
the object to query, e.g. an instance of |
... |
additional arguments |
Value
an object representing the geometric space of the image of type BrainSpace
Examples
x = BrainSpace(c(10,10,10), c(1,1,1))
vol <- BrainVolume(rnorm(10*10*10), x)
identical(x,space(vol))
[Package neuroim version 0.0.6 Index]