imageAttributes {divest} | R Documentation |
Extended image attributes
Description
These functions extract and replace medical image attributes that go beyond the core metadata associated with the NIfTI-1 file format.
Usage
imageAttributes(x)
imageAttributes(x) <- value
Arguments
x |
An R object, generally an image object like those returned by
|
value |
A list of new image attributes to replace any existing ones. |
Details
The DICOM format can encapsulate copious amounts of metadata about the scan
and the patient, which can be useful for more advanced or research-focussed
post-processing methods. Some of this information is extracted during the
DICOM-to-NIfTI conversion process and stored in additional named attributes;
the imageAttributes
function returns a list of just these extended
attributes. The replacement form allows this metadata to be modified or
removed. These functions currently only act on objects inheriting from the
niftiImage
class.
Value
A list of image attributes, or a modified object with these changed.
These are essentially all attributes except those used for basic
niftiImage
objects by the RNifti
package.
Note
Attributes may include sensitive or identifiable information such as a patient's name, sex, date of birth, etc., if this was included in the original DICOM files. These functions make no attempt to identify or anonymise this metadata, and so this must be handled by the user if necessary.
Author(s)
Jon Clayden <code@clayden.org>
References
More information about metadata captured by the BIDS format can be found at https://bids.neuroimaging.io or in the paper cited below.
K.J. Gorgolewski, T. Auer, V.D. Calhoun, et al. The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments (2016). Scientific Data 3:160044. doi:10.1038/sdata.2016.44.
Examples
path <- system.file("extdata", "raw", package="divest")
images <- readDicom(path, interactive=FALSE)
imageAttributes(images[[1]])