mesh.in.new.ref | R Documentation |
The mesh.in.new.ref
function allows you to change the frame
of reference of a mesh.
mesh.in.new.ref( mesh, new.ref.pseudo, T.MAT = NULL, alias = "", description = NULL )
mesh |
"volume" class object. |
new.ref.pseudo |
pseudonym of the frame of reference in which the mesh
should be located. This |
T.MAT |
"t.mat" class object, created by load.patient.from.Rdcm, load.patient.from.dicom, load.T.MAT or ref.add. |
alias |
Character string, |
description |
Character string, describing the created object. If
|
Returns "mesh" class object in the new frame of reference new.ref.pseudo
.
# loading of toy-patient objects (decrease dxyz for better result) step <- 4 patient <- toy.load.patient (modality = c("ct", "rtstruct", "mr"), roi.name = "", dxyz = rep (step, 3)) CT <- patient$ct[[1]] S <- patient$rtstruct[[1]] #creation of the patient mesh bin <- bin.from.roi (CT, struct = S, roi.name = "patient") mesh.patient <- mesh.from.bin (bin, alias = "patient", verbose = FALSE) # mesh in the MR frame of reference new.mesh <- mesh.in.new.ref (mesh.patient, patient$mr[[1]]$ref.pseudo, T.MAT = patient$T.MAT) str (new.mesh, max.level = 2)