histo.vol | R Documentation |
The histo.vol
function calculates the voxel values
histogram of "volume" class object.
histo.vol(vol, breaks = NULL, alias = "", description = NULL, weight = NULL)
vol |
"volume" class object. |
breaks |
Vector giving the breakpoints between histogram cells. If
|
alias |
Character string, |
description |
Character string, describing the the created object. If the |
weight |
espadon object of the volume class, where |
Returns a "histo" class object. This is a list including:
$patient
: set to vol$patient
.
$patient.name
: set to vol$patient.name
.
$patient.bd
: set to vol$patient.bd
.
$patient.sex
: set to vol$patient.sex
.
$file.basename
: set to "".
$file.dirname
: set to "".
$object.name
: set to "".
$object.alias
: alias of the histo object.
$frame.of.reference
: set to vol$frame.of.reference
.
$ref.pseudo
: set to vol$ref.pseudo
.
$modality
: set to "histo"
.
$description
: description of the histo object.
$creation.date
: set to Sys.Date
.
$nb.MC
: set to 0.
$breaks
: vector breakpoints
$mids
: vector of cell centers.
$mids.unit
: Character string, representing the unit of the abcissa
of the histogram. For instance, "Gy", when vol
is a rtdose.
counts
: count of voxels whose value is included in the limits
defined by $breaks
.
dV_dx
: differential histogram, expressed in \mjeqncm^3ascii by voxel units,
at each $mids
.
histo.from.roi, histo.from.bin, display.histo, display.dV_dx
# loading of toy-patient objects
step <- 3
patient <- toy.load.patient (modality = "ct", dxyz = rep (step, 3))
CT <- patient$ct[[1]]
# histogram and display
H <- histo.vol (CT, breaks = seq (3, ceiling (CT$max.pixel), 1),
alias = "CT_hist")
str (H)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.