read.DICOM.Rd
Read DICOM file.
read.DICOM(filename,includedata = TRUE)
filename | name of the file |
---|---|
includedata | logical. should data be read too? defaults to |
The function reads a DICOM file.
Object with the following list entries:
header information as raw data
image data if requested. raw vector (numeric size 4) containing the four dimensional data cube (the first three dimensions are voxel dimensions, the fourth dimension denotes the time).
data source. string "DICOM"
voxel size in mm
series identifier
image number within series
dimension of the data if available
Karsten Tabelow tabelow@wias-berlin.de
http://medical.nema.org
Polzehl, J. and Tabelow, K. (2007) fmri: A Package for Analyzing fmri Data, R News, 7:13-17 .
Since the DICOM standard is rather complicated, there may be cases where this function cannot read a DICOM file. Known issue: it cannot read header with implicit VR. Return value may change in future version!
if (FALSE) dicom <- read.DICOM("dicomfile")