readDICOM: Read All DICOM Files in a Directory

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/dicom.R

Description

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

Usage

1
2
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.

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.

Value

A list structure with two major components:

img

All images associated with the DICOM directory(ies).

hdr

All header files associated with the DICOM directory(ies).

Author(s)

Brandon Whitcher bwhitcher@gmail.com

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

1
2
3
4
5
## Not run: 
dcmSphere <- readDICOM(system.file("sphere3", package="oro.dicom"),
                       verbose=TRUE)

## End(Not run)

Example output

oro.dicom: Rigorous - DICOM Input / Output (version = 0.5.0)

  32 files to be processed by readDICOM()

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |==                                                                    |   3%
  |                                                                            
  |====                                                                  |   6%
  |                                                                            
  |=======                                                               |   9%
  |                                                                            
  |=========                                                             |  12%
  |                                                                            
  |===========                                                           |  16%
  |                                                                            
  |=============                                                         |  19%
  |                                                                            
  |===============                                                       |  22%
  |                                                                            
  |==================                                                    |  25%
  |                                                                            
  |====================                                                  |  28%
  |                                                                            
  |======================                                                |  31%
  |                                                                            
  |========================                                              |  34%
  |                                                                            
  |==========================                                            |  38%
  |                                                                            
  |============================                                          |  41%
  |                                                                            
  |===============================                                       |  44%
  |                                                                            
  |=================================                                     |  47%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |=====================================                                 |  53%
  |                                                                            
  |=======================================                               |  56%
  |                                                                            
  |==========================================                            |  59%
  |                                                                            
  |============================================                          |  62%
  |                                                                            
  |==============================================                        |  66%
  |                                                                            
  |================================================                      |  69%
  |                                                                            
  |==================================================                    |  72%
  |                                                                            
  |====================================================                  |  75%
  |                                                                            
  |=======================================================               |  78%
  |                                                                            
  |=========================================================             |  81%
  |                                                                            
  |===========================================================           |  84%
  |                                                                            
  |=============================================================         |  88%
  |                                                                            
  |===============================================================       |  91%
  |                                                                            
  |==================================================================    |  94%
  |                                                                            
  |====================================================================  |  97%
  |                                                                            
  |======================================================================| 100%

oro.dicom documentation built on May 2, 2019, 6:07 p.m.