dicom.browser {espadon}R Documentation

DICOM raw data browser

Description

the dicom.browser function creates a dataframe describing the tags contained in the raw data of a DICOM file, as well as the information to access them.

Usage

dicom.browser(
  dicom.raw.data,
  nbTAG = 0,
  stop.tag = "",
  stop.level = 0,
  full.info = FALSE,
  tag.dictionary = dicom.tag.dictionary()
)

Arguments

dicom.raw.data

Raw vector, representing the binary extraction of the DICOM file.

nbTAG

Integer. If nbTAG = 0 (default), and stop.tag = "", all the DICOM raw data is browsed. Otherwise, the function only browses the first nbTAG tags.

stop.tag

Character string, representing the tag that stops the browse of the dicom.raw.data.

stop.level

Positive integer, specifying the encapsulation level of the stop.tag in dicom.raw.data.

full.info

Boolean. If TRUE, more information about the DICOM data is returned.

tag.dictionary

Dataframe, by default equal to dicom.tag.dictionary, whose structure it must keep. This dataframe is used to parse DICOM files.

Value

Returns a dataframe if dicom.raw.data is DICOM raw data, NULL otherwise.

If full.info = FALSE, dataframe columns are

If full.info = TRUE, the following columns are added :

See Also

dicom.raw.data.loader, dicom.tag.parser

Examples

# DICOM information dataframe of the dummy raw data toy.dicom.raw ()
df <- dicom.browser (toy.dicom.raw (), full.info = TRUE)
str (df)

[Package espadon version 1.7.2 Index]