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.
dicom.browser(
dicom.raw.data,
nbTAG = 0,
stop.tag = "",
stop.level = 0,
full.info = FALSE,
tag.dictionary = dicom.tag.dictionary()
)Returns a dataframe if dicom.raw.data is DICOM raw data,
NULL otherwise.
If full.info = FALSE, dataframe columns are
tag : the tags contained in dicom.raw.data,
VR : value representation of the content of the tag,
endian : the endianness of the tag content,
start : the start address in dicom.raw.data of the tag content.
stop : the stop address in dicom.raw.data of the tag content.
If full.info = TRUE, the following columns are added :
encaps.load : If the tag contains nested data, this column gives the number of bytes remaining until the end of the nesting. If there are several levels of nesting, these numbers are collapsed and separated by a space.
load.start : the start address in dicom.raw.data of the tag load size.
load.stop : the stop address in dicom.raw.dataof the tag load size.
tag.start : the start address in dicom.raw.data of the tag.
Raw vector, representing the binary extraction of the DICOM file.
Integer. If nbTAG = 0 (default), and stop.tag = "",
all the DICOM raw data is browsed. Otherwise, the function only browses the
first nbTAG tags.
Character string, representing the tag that stops the browse
of the dicom.raw.data.
Positive integer, specifying the encapsulation level of the
stop.tag in dicom.raw.data.
Boolean. If TRUE, more information about the DICOM
data is returned.
Dataframe, by default equal to dicom.tag.dictionary, whose structure it must keep. This dataframe is used to parse DICOM files.
dicom.raw.data.loader, dicom.tag.parser
# DICOM information dataframe of the dummy raw data toy.dicom.raw ()
df <- dicom.browser (toy.dicom.raw (), full.info = TRUE)
str (df)
Run the code above in your browser using DataLab