struct.in.new.ref {espadon}R Documentation

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

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.

Value

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

See Also

vol.in.new.ref

Examples

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

[Package espadon version 1.6.0 Index]