read_dicom_header: Read DICOM File

Description Usage Arguments Value Examples

View source: R/read_dicom_header.R

Description

Reads in the DICOM header from a file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
read_dicom_header(
  file = "*.dcm",
  replace_names = FALSE,
  add_opts = "",
  recursive = FALSE,
  path = ".",
  ...
)

read_single_dicom_header(file = "", replace_names = FALSE, add_opts = "", ...)

dcmhd(...)

Arguments

file

DICOM input file or directory. If recursivee = TRUE, then this will be the pattern to match within path

replace_names

logical indicating if unknown tag names should be inferred from dicom_tags

add_opts

additional options to pass to dcmdump. The flags already added are -q --print-all --load-short --print-filename

recursive

logical indicating if the --recurse flag be passed to dcmdump

path

if recursive = TRUE, then this will the path scanned.

...

passed to dcmdump

Value

Character vector of header information

Examples

1
2
file = system.file("extdata", "example.dcm", package = "dcmtk")
read_dicom_header(file)

muschellij2/dcmtk documentation built on March 17, 2021, 9:11 p.m.