vol.sum | R Documentation |
The vol.sum
function adds two "volume" class objects
of the same grid and of the same modality.
vol.sum(vol1, vol2, alias = "", description = NULL)
vol1 , vol2 |
"volume" class objects. The 2 volumes must have the same modality, and the same grid (i.e. share the same position of the voxels). |
alias |
Character string, |
description |
Character string, describing the created object. If
|
Returns a "volume" class object (see espadon.class
for class definitions), with the same grid and modality
as vol1
and vol2
, sum of vol1
and vol2
.
# loading of toy-patient objects (decrease dxyz and increase beam.nb for
# better result)
step <- 5
pat<- toy.load.patient (modality = c ( "rtdose"), dxyz = rep (step, 3),
beam.nb = 3)
# Double dose
D <- vol.sum (pat$rtdose[[1]], pat$rtdose[[1]])
pat$rtdose[[1]]$max.pixel
D$max.pixel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.