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 T.MAT is NULL, vol must be displayed in display.ref = vol$ref.pseudo.

col

Vector, representing the color palette of the image. Transparent colors are not represented.

breaks

One of :

  • NULL : the minimum and the maximum value of the vol define the range.

  • Vector giving the breakpoints of each color.

trans

Boolean. If TRUE (default), the transverse view is displayed.

sagi

Boolean. If TRUE (default), the sagittal view is displayed.

front

Boolean. If TRUE (default), the frontal view is displayed.

border

Boolean. If TRUE (default), the borders of the planes are displayed

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))))

[Package espadon version 1.7.2 Index]