Learn R Programming

neuroim (version 0.0.6)

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

Description

Generic function to extract geometric properties of an image.

Usage

space(x, ...)
"space"(x)
"space"(x)
"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

Run this code
x = BrainSpace(c(10,10,10), c(1,1,1))
vol <- BrainVolume(rnorm(10*10*10), x)
identical(x,space(vol))

Run the code above in your browser using DataLab