voxdim: Gets Voxel Dimensions

Description Usage Arguments Value Examples

View source: R/voxdim.R

Description

Grabs the pixdim and takes the correct elements

Usage

1
voxdim(img)

Arguments

img

nifti object

Value

Vector of length 3

Examples

1
2
3
nim <- nifti(array(rnorm(10^3), dim = c(5, 2, 100)),
pixdim = c(1, 0.5, 0.2, 1))
voxdim(nim)

neuroconductor-devel/oro.nifti documentation built on May 6, 2021, 1:49 p.m.