get.extreme.pt | R Documentation |
The get.extreme.pt
function returns the x, y, z coordinates
of the 2 extreme voxels of the rectangular parallelepiped, containing
the objet obj
of class volume, struct or mesh. These coordinates are given in
the ref.pseudo
frame of reference.
get.extreme.pt(obj, ref.pseudo = obj$ref.pseudo, T.MAT = NULL, ...)
obj |
object of class volume or struct or mesh. |
ref.pseudo |
Pseudonym of the frame of reference in which you want the coordinates. |
T.MAT |
"t.mat" class object, created by
load.patient.from.Rdcm or load.T.MAT. If
|
... |
Additional arguments |
Returns a dataframe of min and max columns, and x, y and z rows.
If obj
is a member of the class volume: the returned dataframe
represents the coordinates of the 2 extreme points of the rectangle parallelepiped
including all the voxels such as min <= obj$vol3D.data <= max
,
if the arguments min
or max
exist, or including all the voxels otherwise.
If obj
is a member of the class struct: the returned dataframe
represents the coordinates of the 2 extreme points of the rectangular parallelepiped
including all the selected RoI.
if obj
is a member of the class mesh: the returned dataframe
represents the coordinates of the 2 extreme points of the rectangular parallelepiped
including all the mesh.
# loading of toy-patient objects
patient <- toy.load.patient (modality = "ct", roi.name = "", dxyz = c (5, 5, 5))
CT <- patient$ct[[1]]
# xyz extreme coordinate
get.extreme.pt (CT)
get.extreme.pt (CT, min = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.