spacing-methods: Generic function to extract the voxel dimensions of an image

Description Usage Arguments Value Examples

Description

Generic function to extract the voxel dimensions of an image

spacing

Usage

1
2
3
4
5
6
7
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

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

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