header2list: Convert DICOM header file/data.frame to nested list

View source: R/reading-writing-functions.R

header2listR Documentation

Convert DICOM header file/data.frame to nested list

Description

Convert the DICOM header file or the header plain data frame obtained from the oro.dicom::readDICOMfile() to a nested list of data. The nested list is analogous to the structure obtained in MatLab using the function dicominfo() and it is easier to navigate and parse than the plain data frame.

Usage

header2list(file = NULL, header = NULL, index = 1, lev = 0, ...)

Arguments

file

the DICOM header file (alternative to the header data frame).

header

the header data frame (alternative to DICOM header file).

index

the starting row of the header data.frame to be parsed.

lev

starting nesting level.

...

parameters passed to readDICOMFile().

Details

Note: info about the element types can be found at http://dicom.nema.org/dicom/2013/output/chtml/part05/sect_6.2.html


planit-group/Rplanit documentation built on Dec. 5, 2022, 11:10 p.m.