Rdcm.inventory {espadon} | R Documentation |
Inventory of espadon objects from Rdcm files
Description
The Rdcm.inventory
function creates, from Rdcm files in a
patient's directory, a dataframe describing objects.
Usage
Rdcm.inventory(dirname, upgrade.to.latest.version = FALSE)
Arguments
dirname |
Character string, representing the full name of patient directory, including Rdcm files. |
upgrade.to.latest.version |
Boolean. If |
Value
Returns a dataframe, providing information of DICOM objects.
Examples
# First, save toy patient objects to a temporary file pat.dir for testing.
pat.dir <- file.path (tempdir(), "PM_Rdcm")
dir.create (pat.dir, recursive = TRUE)
patient <- toy.load.patient (modality = c("ct", "mr"), roi.name = "",
dxyz = c (4, 4, 4))
save.to.Rdcm (patient$ct[[1]], dirname = pat.dir)
save.to.Rdcm (patient$mr[[1]], dirname = pat.dir)
save.T.MAT (patient$T.MAT, dirname = pat.dir)
Rdcm.inventory (pat.dir)
# Cleaning temporary directory
unlink (pat.dir, recursive = TRUE)
[Package espadon version 1.7.2 Index]