space-methods: Generic function to extract geometric properties of an image.

Description Usage Arguments Value Examples

Description

Generic function to extract geometric properties of an image.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 BrainVolume or BrainVector

...

additional arguments

Value

an object representing the geometric space of the image of type BrainSpace

Examples

1
2
3
x = BrainSpace(c(10,10,10), c(1,1,1))
vol <- BrainVolume(rnorm(10*10*10), x)
identical(x,space(vol))

neuroim documentation built on May 2, 2019, 1:04 p.m.