Learn R Programming

oro.dicom (version 0.4.3)

readDICOM: Read All DICOM Files in a Directory

Description

All DICOM files are imported and a text file summarizing their content recorded.

Usage

readDICOM(path, recursive = TRUE, exclude = NULL, verbose = FALSE,
          counter, ...)

Arguments

path
Path name to the DICOM directory.
recursive
Search recursively down from the given path name.
exclude
Exclude file names containing this character string.
verbose
Flag to provide text-based progress bar.
counter
Ignored.
...
Arguments to be passed to readDICOMFile.

Value

  • A list structure with two major components:
  • imgAll images associated with the DICOM directory(ies).
  • hdrAll header files associated with the DICOM directory(ies).

Details

A for loop is used to process each DICOM file contained in the directory(ies). If only a single file is specified in the path, readDICOM will read that file only.

References

Whitcher, B., V. J. Schmid and A. Thornton (2011). Working with the DICOM and NIfTI Data Standards in R, Journal of Statistical Software, 44 (6), 1--28. http://www.jstatsoft.org/v44/i06

Digital Imaging and Communications in Medicine (DICOM) http://medical.nema.org

See Also

readDICOMFile

Examples

Run this code
dcmSphere <- readDICOM(system.file("sphere3", package="oro.dicom"),
                       verbose=TRUE)

Run the code above in your browser using DataLab