swapDimension: Reslice Data Volume Using DICOM Header Fields

Description Usage Arguments Value Author(s) See Also

View source: R/orientation.R

Description

The input data volume (assumed to be three-dimensional) is re-sliced so that each slice is in the axial plane. Orientation is preserved so that orthographic viewing is standardized.

Usage

1
swapDimension(img, dcm, digits = 2)

Arguments

img

Multidimensional array (assumed to be three-dimensional only).

dcm

DICOM header/image object associated with the multidimensional array.

digits

Number of significant digits used in testing unique-ness of values in DICOM header fields.

Value

Multidimensional array with (potentially) permuted dimensions because of the reslicing operation. An additional attribute “pixdim” is provided in order to facilitate conversion from DICOM to NIFTI/ANALYZE.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

See Also

dicom2nifti, getOrientation


oro.dicom documentation built on Oct. 30, 2019, 9:59 a.m.