Parses a DICOM header to a data.frame
parse_hdr(hdr, convert_non_ascii = TRUE)Character vector from dcmdump
Should [iconv] be run before parsing? This can help failures in UTF-8 issues, but may alter the output from [dcmdump()]
data.frame of tags and values
file = system.file("extdata", "example.dcm", package = "dcmtk")
hdr = dcmdump(file)
#> Error in check_dcmtk_cmd(cmd): DCMTK command dcmdump not found! If DCMTK not installed system wide, see info https://dicom.offis.de/en/dcmtk/dcmtk-tools/!
parsed = parse_hdr(hdr)
#> Error: object 'hdr' not found