# loading of toy-patient objects (decrease dxyz and increase beam.nb for
# better result)
step <- 5
patient <- toy.load.patient (modality = c ("mr", "rtdose"),
dxyz = rep (step, 3), beam.nb = 4)
MR <- patient$mr[[1]]
D <- patient$rtdose[[1]]
# change grid
D.on.MR <- vol.regrid (vol = D, back.vol = MR, interpolate = TRUE,
T.MAT = patient$T.MAT, alias = "",
description = NULL, verbose = FALSE)
# maximum dose location
max.dose.in.MR <- get.xyz.from.index (which.max (D.on.MR$vol3D.data), D.on.MR)
display.plane (bottom = MR, view.coord = max.dose.in.MR[3],
top= D.on.MR, bottom.col = grey.colors(255, start = 0, end = 1),
bottom.breaks = seq (0, 500, length.out = 256),
bg = "#00ff00", interpolate = FALSE)
Run the code above in your browser using DataLab