voxdim: Gets Voxel Dimensions

View source: R/voxdim.R

voxdimR Documentation

Gets Voxel Dimensions

Description

Grabs the pixdim and takes the correct elements

Usage

voxdim(img)

Arguments

img

nifti object

Value

Vector of length 3

Examples

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


oro.nifti documentation built on Aug. 10, 2022, 5:09 p.m.

Related to voxdim in oro.nifti...