ref.srctodest.add {espadon} | R Documentation |
Linking two existing frames of reference in T.MAT
Description
The ref.srctodest.add
function links the source frame of
reference with the destination frame of reference.
Usage
ref.srctodest.add(src.ref, dest.ref, TM = diag(4), T.MAT = NULL)
Arguments
src.ref |
Character string, pseudonym of the source frame of reference. |
dest.ref |
Character string, pseudonym of the destination frame of reference. |
TM |
4x4 tansfert matrix for moving from |
T.MAT |
"t.mat" class object created by
load.patient.from.dicom, load.patient.from.Rdcm
or load.T.MAT. If |
Value
Returns a "t.mat" class object, which contains the transfer
matrices from or to dest.ref
pseudonym of the new frame
of reference. If the T.MAT
is NULL
, then the returned object
will contain only 4 matrices: "src.ref<-src.ref",
"src.ref<-dest.ref", "dest.ref<- dest.ref", "dest.ref<-src.ref".
See Also
ref.add, ref.cutplane.add, ref.remove.
Examples
local.Tmat <- ref.srctodest.add ("ref1","ref2",
TM = matrix(c (0.5, -sin (pi / 3), 0, 0,
sin (pi / 3), 0.5, 0, 0,
0, 0, 1, 0, 0, 0, 0, 1),
ncol = 4))
str (local.Tmat)