get.volume.from.bin {espadon} | R Documentation |
Volume selected by binary volume
Description
The get.volume.from.bin
function calculates the volume in
\(cm^3\) of the selection specified by a "volume" class object
of "binary"
modality.
Usage
get.volume.from.bin(bin)
Arguments
bin |
"volume" class object, of "binary" modality. |
Value
Returns the volume of the binary selection, in \(cm^3\).
See Also
Examples
# loading of toy-patient objects
step <- 4
patient <- toy.load.patient (modality = c ("ct", "rtstruct"), roi.name = "brain",
dxyz = rep (step, 3))
CT <- patient$ct[[1]]
S <- patient$rtstruct[[1]]
# creation of a binary object
bin.brain <- bin.from.roi (vol = CT, struct = S, roi.sname = "bra",
verbose = FALSE)
# Volume calculation
get.volume.from.bin (bin.brain)
[Package espadon version 1.7.2 Index]