Learn R Programming

oro.nifti (version 0.11.4)

voxdim: Gets Voxel Dimensions

Description

Grabs the pixdim and takes the correct elements

Usage

voxdim(img)

Value

Vector of length 3

Arguments

img

nifti object

Examples

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

Run the code above in your browser using DataLab