Learn R Programming

RadOnc (version 1.0.5)

compareStructures: Compare Axially-Defined Three-Dimensional Structures

Description

Three-dimensional structural comparison of a structure.list composed of two or more structure3D objects.

Usage

compareStructures(structures, 
	method = c("axial", "surface", "hausdorff", "grid"),
	hausdorff.method = c("mean", "median", "absolute"),
	verbose = TRUE, plot = TRUE, pixels = 100)

Arguments

structures
An object of class structure.list containing two or more structure3D objects.
method
One of "axial", "surface", or "hausdorff" specifying the comparison between structures. For the "axial" method (default), the volumetric region of comparison is divided into discrete evenly-spaced voxels
hausdorff.method
One of "mean", "median", or "absolute", specifying the method to use for Hausdorff distance measurement when method = "hausdorff". The "absolute" Hausdorff distance yields the maximum distan
verbose
Logical value (default is TRUE) indicating whether or not to print status updates to the active command line interface or workspace.
plot
Logical value (default is TRUE) indicating whether or not to display graphical comparison of structures. This parameter is only relevant when method = "axial", as it is otherwise ignored.
pixels
Integer value (default is 100) specifying the number of pixels in the x- and y-directions used for comparative calculations when method = "axial".

Value

  • When method = "hausdorff", the function returns a NxN matrix of pairwise Hausdorff distances, where N is the number of structures in structures. When method = "axial" or method = "surface", the function returns a Mx(N+3) dimensional matrix representing a list of M points in three-dimensional space and a table of values denoting whether each point is internal or external to each structure (note that the first three columns in the matrix represent the xyz coordinates for each point and values of 1 and 0 represent internal and external points, respectively).

See Also

structure.list, structure3D

Examples

Run this code
data("RadOnc")
# teeth.compare <- compareStructures(teeth, method="axial", plot=TRUE)
# compareStructures(teeth, method="hausdorff", hausdorff.method="mean")

Run the code above in your browser using DataLab