dicom2nifti.Rd
A subset of header information from DICOM is placed into NIfTI-1 format.
dicom2nifti(dcm, datatype = 4, units = c("mm", "sec"),
rescale = FALSE, reslice = TRUE, qform = TRUE, sform = TRUE,
DIM = 3, descrip = "SeriesDescription", aux.file = NULL, ...)
dcm | DICOM object containing both header and image information. |
---|---|
datatype | is an integer that denotes the type of data contained in
each voxel. See |
units | Spatial and temporal units for |
rescale | Should slope and intercept parameters be extracted from the DICOM headers and saved? |
reslice | Logical variable (default = |
qform | Logical variable (default = |
sform | Logical variable (default = |
DIM | The dimension of the array to be used (default = 3D). |
descrip | DICOM header field(s) to be included in the |
aux.file | Character string to be included in the |
... | Arguments to be passed to |
An object of class nifti
.
See the references.
Digital Imaging and Communications in Medicine (DICOM)
http://medical.nema.org
NIfTI-1
http://nifti.nimh.nih.gov/nifti-1
Brandon Whitcher bwhitcher@gmail.com
if (FALSE) {
dcmList <- dicomSeparate(system.file("hk-40", package="oro.dicom"))
require("oro.nifti")
dcmNifti <- dicom2nifti(dcmList, datatype=4, mode="integer")
qform(dcmNifti)
sform(dcmNifti)
image(dcmNifti)
orthographic(dcmNifti)
}