display.3D.sections {espadon} | R Documentation |
Display 3D sections of a patient
Description
The display.3D.sections
function displays transverse,
sagittal and frontal views at a point in 3D.
Usage
display.3D.sections(
vol,
cross.pt = c(0, 0, 0),
display.ref = vol$ref.pseudo,
T.MAT = NULL,
col = grey.colors(10, start = 0, end = 1, alpha = c(rep(0, 1), rep(1, 9))),
breaks = NULL,
trans = TRUE,
sagi = TRUE,
front = TRUE,
border = TRUE,
border.col = "#379DA2"
)
Arguments
vol |
"volume" class object to display. See espadon.class for class definitions. |
cross.pt |
Vector of x, y, z coordinates, representing the cross point of the 3 planes. |
display.ref |
Character string. Pseudonym of the frame of reference used for display. |
T.MAT |
"t.mat" class object, created by load.patient.from.Rdcm or
load.T.MAT. If |
col |
Vector, representing the color palette of the image. Transparent colors are not represented. |
breaks |
One of :
|
trans |
Boolean. If |
sagi |
Boolean. If |
front |
Boolean. If |
border |
Boolean. If |
border.col |
Color of planes borders |
Value
Returns a display of transverse, sagittal and frontal views of vol
at cross.pt
in the current RGL window if it exists, in a new
window otherwise. Palette colors are managed by col
and breaks
.
Examples
# loading of toy-patient objects (decrease dxyz for better result)
step <- 4
patient <- toy.load.patient (modality = "ct", dxyz = rep (step, 3))
CT <- patient$ct[[1]]
library (rgl)
open3d()
display.3D.sections(CT, cross.pt= c(0, 50, 80),
col= pal.RVV(200, alpha= c(rep(0,90), rep(1,110))))