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
 8
 9
10
spacing(x)

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

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

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

Arguments

x

the object

Value

a numeric vector

Examples

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

bbuchsbaum/neuroim2 documentation built on Nov. 14, 2019, 7:01 a.m.