dicom_header_as_matrix: Get the header information as a matrix

Description Usage Arguments Value Examples

View source: R/metadata_dicom.R

Description

Get the header information as a matrix

Usage

1
dicom_header_as_matrix(dicom_data, slice_idx = NA)

Arguments

dicom_data

DICOM data returned by read_dicom

slice_idx

1-based slice index. If NA, all slices will be included. Won't work if multiple slices are included in only one image file.

Value

Data frame containing one record for each header attribute. Note that if all slices are included, fields that appear more than once (including tag and name) in a given slice header will be excluded from the values reported for that slice. Each column contains all header attributes for one slice, therefore, values are represented as strings even if they are conceptually numeric.

Examples

1
2

pamelarussell/radtools documentation built on Dec. 16, 2019, 5:28 a.m.