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

matchHeader

Match String to DICOM Header Field


Description

A convenient wrapper function that utilizes internal functions to match character strings with the DICOM header information.

Usage

matchHeader(hdr, string)

Arguments

hdr

is the result from extracting information from a DICOM header field; e.g., using extractHeader.

string

is a character string to be matched with the DICOM header.

Value

A logical vector of length length(hdr).

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"))
modality <- extractHeader(x$hdr, "Modality", numeric=FALSE)
matchHeader(modality, "mr") # case insensitive by default

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.