Learn R Programming

neuroim (version 0.0.6)

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

Description

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

bounds

Usage

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

Run this code
bspace <- BrainSpace(c(10,10,10), c(2,2,2))
b <- bounds(bspace)
nrow(b) == ndim(bspace)
ncol(b) == 2

Run the code above in your browser using DataLab