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
5
6
7
bounds(x)

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

## S4 method for signature 'BrainData'
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 <- BrainSpace(c(10,10,10), c(2,2,2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2

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