# loading of toy-patient objects (decrease dxyz and increase beam.nb for
# better result)
step <- 5
patient <- toy.load.patient (modality = c("rtdose"),
dxyz = rep (step, 3), beam.nb = 3)
D <- patient$rtdose[[1]]
# isodose 50% Dmax Gy and 90% Dmax
bin50 <- bin.from.vol (D, min = 0.5 * D$max.pixel)
bin90 <- bin.from.vol (D, min = 0.9 * D$max.pixel)
S.isodose50 <- struct.from.bin (bin50, roi.name = "50pc" ,
roi.color = "#00FFFF")
S.isodose90 <- struct.from.bin (bin90, roi.name = "90pc" ,
roi.color = "#FFFF00")
S <- struct.merge (S.isodose50, S.isodose90, alias = "isodose",
description = paste ("isodose of", D$object.alias))
# Dmax location :
z.dmax <- get.xyz.from.index(which (D$vol3D.data == D$max.pixel), D)[1,3]
display.plane(top = D, struct = S, view.coord = z.dmax, legend.shift = -50)
Run the code above in your browser using DataLab