View source: R/get_volume_from_bin.R
| get.volume.from.bin | R Documentation |
The get.volume.from.bin function calculates the volume in
cm³ of the selection specified by a "volume" class object
of "binary" modality.
get.volume.from.bin(bin)
bin |
"volume" class object, of "binary" modality. |
Returns the volume of the binary selection, in cm³.
get.volume.from.roi
# 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 weight and binary objects
bin.brain.w <- bin.from.roi(vol = CT, struct = S, roi.sname = "bra",
modality = "weight", verbose = FALSE)
bin.brain.b <- bin.from.roi(vol = CT, struct = S, roi.sname = "bra",
verbose = FALSE)
# Volume calculation
get.volume.from.roi(struct = S, roi.sname = "bra")
get.volume.from.bin(bin.brain.w)
get.volume.from.bin(bin.brain.b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.