display.3D.contour {espadon} | R Documentation |
Display the 3D contours of the RoI
Description
The display.3D.contour
function performs a 3D display of the selected RoI in the chosen coordinate system.
Usage
display.3D.contour(
struct,
roi.name = NULL,
roi.sname = NULL,
roi.idx = NULL,
roi.col = NULL,
roi.print = FALSE,
roi.lwd = 1,
roi.cex = 1,
display.ref = struct$ref.pseudo,
T.MAT = NULL,
FoR.axis = FALSE,
FoR.col = "black"
)
Arguments
struct |
"struct" class object. See espadon.class for class definitions. |
roi.name |
Vector of exact names of the RoI in the |
roi.sname |
Vector of names or parts of names of the RoI in the |
roi.idx |
Vector of indices of the RoI that belong to the |
roi.col |
Color of the RoI. If |
roi.print |
Boolean vector indicating whether to display the pseudonym of the RoI. |
roi.lwd |
Line width of the RoI, by default at 1. |
roi.cex |
Numeric character expansion factor of RoI name if
|
display.ref |
Pseudonym of frame of reference of the display. |
T.MAT |
"t.mat" class object, created by load.patient.from.Rdcm or
load.T.MAT. If |
FoR.axis |
Boolean or numeric, by default set to |
FoR.col |
Color of the frame of reference. |
Details
If roi.name
, roi.sname
, and roi.idx
are all
NULL
, then all of the RoI are selected.
Value
If the concerned regions of interest (RoI) struct
exist,
it displays the 3D contours of these RoI in the current RGL window if it exists,
in a new window otherwise.
Examples
# loading of toy-patient objects (decrease dxyz for better result)
step <- 4
patient <- toy.load.patient (modality = "rtstruct", roi.name = "eye",
dxyz = rep (step, 3))
library (rgl)
open3d()
bg3d ("black")
display.3D.contour (struct = patient$rtstruct[[1]], roi.print = TRUE)