get.volume.from.roi | R Documentation |
The get.volume.from.roi
function extracts the volume
in\mjeqncm^3ascii of one or more RoI, from the $roi.info
of the
"struct" class object.
get.volume.from.roi(struct, roi.name = NULL, roi.sname = NULL, roi.idx = NULL)
struct |
"struct" class object. |
roi.name |
Vector of exact names of the RoI in the |
roi.sname |
Vector of names or parts of names of the RoI in the |
roi.idx |
Vector of indices of the RoI that belong to the |
If roi.name
, roi.sname
, and roi.idx
are all set
to NULL, all RoI are selected.
Returns a vector of the volumes in \mjeqncm^3ascii of the requested RoI.
get.volume.from.bin, select.names
# loading of toy-patient objects
step <- 4
patient <- toy.load.patient (modality = c ("rtstruct"),
dxyz = rep (step, 3))
S <- patient$rtstruct[[1]]
# Volume extraction
vol <- get.volume.from.roi (S, roi.sname = "bra", roi.idx = c (1, 3))
names (vol)
vol
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.