Learn R Programming

espadon (version 1.11.3)

struct.in.new.ref: Change of frame of reference of a "struct" class object.

Description

The struct.in.new.ref function allows you to change the frame of reference of a struct.

Usage

struct.in.new.ref(struct, new.ref.pseudo, T.MAT, alias = "")

Value

Returns "struct" class object in the new frame of reference new.ref.pseudo.

Arguments

struct

"struct" class object.

new.ref.pseudo

pseudonym of the frame of reference in which the struct should be located. This new.ref.pseudo must exist in the T.MAT list.

T.MAT

"t.mat" class object, created by load.patient.from.dicom, load.patient.from.Rdcm, load.T.MAT or ref.add.

alias

Character string, $alias of the created object.

See Also

vol.in.new.ref

Examples

Run this code
# loading of toy-patient objects (decrease dxyz for better result)
step <- 4
patient <- toy.load.patient (modality = c("mr", "rtstruct"), roi.name = "", 
                             dxyz = rep (step, 3))
S <- patient$rtstruct[[1]]
S.in.new.ref <- struct.in.new.ref (S, patient$mr[[1]]$ref.pseudo, patient$T.MAT)

Run the code above in your browser using DataLab