Reads in the DICOM header from a file
read_dicom_header(file = "*.dcm", replace_names = FALSE,
add_opts = "", recursive = FALSE, path = ".", ...)
read_single_dicom_header(file = "", replace_names = FALSE,
add_opts = "", ...)
dcmhd(...)
file | DICOM input file or directory. If |
---|---|
replace_names | logical indicating if unknown tag names should be
inferred from |
add_opts | additional options to pass to |
recursive | logical indicating if the |
path | if |
... | passed to |
Character vector of header information
file = system.file("extdata", "example.dcm", package = "dcmtk")
read_dicom_header(file)
#> /tmp/RtmpbIKxLr/bin/dcmdump -q --print-all --load-short --print-filename /home/runner/work/_temp/Library/dcmtk/extdata/example.dcm
#> Warning: running command '/tmp/RtmpbIKxLr/bin/dcmdump -q --print-all --load-short --print-filename /home/runner/work/_temp/Library/dcmtk/extdata/example.dcm ' had status 126
#> Warning: dcmdump gave back non-zero status
#> Error in if (nrow(df) == 0) { return(NULL)} argument is of length zero