Rdcm.inventory | R Documentation |
The Rdcm.inventory
function creates, from Rdcm files in a
patient's directory, a dataframe describing objects.
Rdcm.inventory(dirname, upgrade.to.latest.version = FALSE)
dirname |
Character string, representing the full name of patient directory, including Rdcm files. |
upgrade.to.latest.version |
Boolean. If |
Returns a dataframe, providing information of DICOM objects.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.