spacing {neuroim}R Documentation

Generic function to extract the voxel dimensions of an image

Description

Generic function to extract the voxel dimensions of an image

spacing

Usage

spacing(x)

## S4 method for signature 'BrainData'
spacing(x)

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

Arguments

x

the object

Value

a numeric vector

Examples

bspace <- BrainSpace(c(10,10,10), c(2,2,2))
all.equal(spacing(bspace), c(2,2,2))

[Package neuroim version 0.0.6 Index]