Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extractHeader

Extract Single Field from DICOM Headers


Description

A particular DICOM field is extracted for a collection of DICOM headers.

Usage

extractHeader(hdrs, string, numeric = TRUE, names = FALSE,
  inSequence = TRUE)

Arguments

hdrs

List object of DICOM headers.

string

DICOM field name.

numeric

Logical; values are converted to numbers when TRUE.

names

Logical; file names are kept with elements of the vector.

inSequence

Logical; whether or not to look into SequenceItem elements.

Details

The DICOM field is extracted from each DICOM header and placed into a vector.

Value

Vector of values from the requested DICOM field.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

References

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

See Also

Examples

x <- readDICOMFile(system.file("dcm/Abdo.dcm", package="oro.dicom"))
seriesDescription <- extractHeader(x$hdr, "SeriesDescription", numeric=FALSE)
IOP <- extractHeader(x$hdr, "ImageOrientationPatient", numeric=FALSE)

oro.dicom

Rigorous - DICOM Input / Output

v0.5.3
BSD_3_clause + file LICENSE
Authors
Brandon Whitcher [aut, cre]
Initial release
2019-10-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.