Convert between differential and cumulative DVH as well as between dose units.
convertDVH(x, toType=c("asis", "cumulative", "differential"),
toDoseUnit=c("asis", "GY", "CGY"),
interp=c("asis", "linear"),
nodes=NULL, rangeD=NULL, perDose=TRUE)# S3 method for matrix
convertDVH(x, toType=c("asis", "cumulative", "differential"),
toDoseUnit=c("asis", "GY", "CGY"),
interp=c("asis", "linear"),
nodes=NULL, rangeD=NULL, perDose=TRUE)
# S3 method for DVHs
convertDVH(x, toType=c("asis", "cumulative", "differential"),
toDoseUnit=c("asis", "GY", "CGY"),
interp=c("asis", "linear"),
nodes=NULL, rangeD=NULL, perDose=TRUE)
# S3 method for DVHLst
convertDVH(x, toType=c("asis", "cumulative", "differential"),
toDoseUnit=c("asis", "GY", "CGY"),
interp=c("asis", "linear"),
nodes=NULL, rangeD=NULL, perDose=TRUE)
# S3 method for DVHLstLst
convertDVH(x, toType=c("asis", "cumulative", "differential"),
toDoseUnit=c("asis", "GY", "CGY"),
interp=c("asis", "linear"),
nodes=NULL, rangeD=NULL, perDose=TRUE)
One DVH (object of class matrix
or DVHs
, multiple cumulative DVHs from one patient with multiple structures (object of class DVHLst
), or multiple cumulative DVHs from many patients, each with multiple structures (object of class DVHLstLst
). See readDVH
.
character
. Convert the DVH to this type. "asis"
keeps the current DVH type.
character
. Convert the DVH to this dose unit. "asis"
keeps the current dose unit.
character
. Interpolation method for the cumulative DVH. "asis"
for no interpolation and "linear"
for linear interpolation.
numeric
. Minimum number of nodes to use in linear interpolation. Number of available nodes is kept as is for NULL
or if larger than nodes
.
numeric
. Dose range for linear interpolation method. If NULL
it is determined individally for each DVH.
logical
. Are the differential DVH volume values per unit dose?
Depending on the input, an object of class matrix
, DVHs
, DVHLst
, or DVHLstLst
.
# NOT RUN {
res <- convertDVH(dataMZ[[c(1, 1)]],
toType="cumulative",
toDoseUnit="CGY")
# }
Run the code above in your browser using DataLab