R/voxdim.R
voxdim.Rd
Grabs the pixdim and takes the correct elements
voxdim(img)
nifti object
Vector of length 3
nim <- nifti(array(rnorm(10^3), dim = c(5, 2, 100)), pixdim = c(1, 0.5, 0.2, 1)) voxdim(nim) #> [1] 0.5 0.2 1.0