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 TRUE, the function attempts to upgrade to the latest version, parsing the DICOM data. It may take longer to load the data. Consider using the Rdcm.upgrade function.

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.0 Index]