nrrd.voxdims: Return voxel dimensions (by default absolute voxel...

Description Usage Arguments Details Value See Also

View source: R/nrrd-io.R

Description

Return voxel dimensions (by default absolute voxel dimensions)

Usage

1
nrrd.voxdims(file, ReturnAbsoluteDims = TRUE)

Arguments

file

path to nrrd/nhdr file or a list containing a nrrd header

ReturnAbsoluteDims

Defaults to returning absolute value of dims even if there are any negative space directions

Details

NB Can handle off diagonal terms in space directions matrix, BUT assumes that space direction vectors are orthogonal.

Will produce a warning if no valid dimensions can be found.

Value

numeric vector of voxel dimensions (NA_real_ when missing) of length equal to the image dimension.

See Also

Other nrrd: is.nrrd, read.nrrd, write.nrrd


jefferis/nat documentation built on Oct. 25, 2018, 6:29 p.m.