Extract Voxel Dimensions of an Image
Source:R/all_generic.R
, R/neuro_obj.R
, R/neurospace.R
spacing-methods.Rd
This function extracts the voxel dimensions of an image represented by the input object.
Usage
spacing(x)
# S4 method for ROICoords
spacing(x)
# S4 method for NeuroObj
spacing(x)
# S4 method for NeuroSpace
spacing(x)
Examples
bspace <- NeuroSpace(c(10, 10, 10), c(2, 2, 2))
all.equal(spacing(bspace), c(2, 2, 2))
#> [1] TRUE