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
11
12
13
space(x, ...)

## S4 method for signature 'IndexLookupVol'
space(x)

## S4 method for signature 'ROICoords'
space(x)

## S4 method for signature 'NeuroObj'
space(x)

## S4 method for signature 'NeuroSpace'
space(x)

Arguments

x

the object to query, e.g. an instance of NeuroVol or NeuroVec

...

additional arguments

Value

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

Examples

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

bbuchsbaum/neuroim2 documentation built on Oct. 15, 2019, 2:55 p.m.