get.extreme.pt {espadon}R Documentation

Coordinates of the extreme points

Description

The get.extreme.pt function returns the x, y, z coordinates of the 2 extreme voxels of the rectangular parallelepiped, containing the volume vol. These coordinates are given in the ref.pseudo frame of reference .

Usage

get.extreme.pt(vol, ref.pseudo = vol$ref.pseudo, T.MAT = NULL)

Arguments

vol

"volume" class object.

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 T.MAT = NULL, ref.pseudo must be equal to vol$ref.pseudo.

Value

Returns a dataframe of min and max columns, and x, y and z rows, representing the coordinates of the 2 extreme voxels of the rectangular parallelepiped.

Examples

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

[Package espadon version 1.2.0 Index]