Learn R Programming

espadon (version 1.11.3)

get.rigid.M: Transfer matrix between two frames of reference

Description

The function get.rigid.M provides, from the T.MAT list created by the functions load.patient.from.Rdcm, load.patient.from.dicom or load.T.MAT, the 4x4 transfer matrix from the FoR (frame o reference) pseudonym src.ref to the FoR pseudonym dest.ref.

Usage

get.rigid.M(T.MAT, src.ref, dest.ref)

Value

Returns the 4x4 transfer matrix dest.ref from src.ref.

Arguments

T.MAT

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

src.ref

Pseudonym of the source frame of reference

dest.ref

Pseudonym of the destination frame of reference

Examples

Run this code
# loading of toy-patient objects
patient <- toy.load.patient (modality = c ("ct", "mr"), roi.name = "",
                             dxyz = c(5, 5, 5))
get.rigid.M (patient$T.MAT, "ref1", "ref2")

Run the code above in your browser using DataLab