mesh.from.bin {espadon}R Documentation

Creation of a mesh according to a binary volume

Description

The mesh.from.bin function creates a mesh class object from a volume object of "binary" modality.

Usage

mesh.from.bin(
  bin,
  alias = "",
  tol = 1,
  smooth.iteration = 10,
  smooth.type = c("taubin", "laplace", "HClaplace", "fujiLaplace", "angWeight",
    "surfPreserveLaplace"),
  smooth.lambda = 0.5,
  smooth.mu = -0.53,
  smooth.delta = 0.1,
  verbose = FALSE
)

Arguments

bin

"volume" class object of "binary" modality.

alias

Character string, $alias of the mesh defining the $alias of the created object.

tol

Tolerance in mm, applied for mesh simplification. See vcgClean.

smooth.iteration

Number of iterations applied in the smoothing algorithm. See vcgSmooth.

smooth.type

character: select smoothing algorithm. Available are "taubin", "laplace", "HClaplace", "fujiLaplace", "angWeight" (and any sensible abbreviations). By default, set to "taubin". See vcgSmooth.

smooth.lambda

numeric: parameter for Taubin smooth. See vcgSmooth.

smooth.mu

numeric: parameter for Taubin smooth. See vcgSmooth.

smooth.delta

numeric: parameter for Scale dependent laplacian smoothing (see reference below).and maximum allowed angle (in radians) for deviation between normals Laplacian (surface preserving). See vcgSmooth.

verbose

Boolean, by default set to FALSE. Allows you to inhibit comments.

Value

Returns a "mesh" class object. This is a list including the following 6 elements:

Note

To compute the mesh, all NA voxels of the binary volume bin are set to FALSE. If all voxels are equal to FALSE, the function returns the code NULL.

See Also

vcgSmooth

Examples

# loading of toy-patient objects (decrease dxyz for better result)
step <- 4
patient <- toy.load.patient (modality = c("ct", "rtstruct"), 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)
str (mesh.patient)

[Package espadon version 1.2.0 Index]