bounds-methods: Generic function to extract the spatial bounds (origin + dim...

Description Usage Arguments Value Examples

Description

Generic function to extract the spatial bounds (origin + dim * spacing) of an image param x the object

bounds

Usage

1
2
3
4
bounds(x)

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

Arguments

x

the object with bounds property

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

1
2
3
4
bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2

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