View source: R/posteriorDeform.r
subsampleDeform | R Documentation |
Deforms a (pre-aligned) reference to a target based on a TPS/AmbergDeform and automatically sampled sliding semi-landmarks
subsampleDeform(
reference,
target,
partsample = NULL,
samplenum = 1000,
distance = 1e+10,
slide = 3,
bending = TRUE,
ray = FALSE,
Amberg = FALSE,
rhotol = pi/2,
reflm = NULL,
tarlm = NULL,
forceLM = FALSE,
silent = FALSE,
threads = 1,
...
)
reference |
reference mesh |
target |
target mesh |
partsample |
predetermined sample points on the reference mesh |
samplenum |
integer: if partsample=NULL, this specifies the number of coordinates sampled on the model mean |
distance |
numeric: constrain maximum distance to mark target point as appropriate |
slide |
integer: if > 0 the valid correspondences on the model instance will be relaxed minimizing bending energy/procrustes distance. |
bending |
logical: if TRUE, the coordinates on the model instance are relaxed using bending energy, Procrustes distance otherwise |
ray |
logical: if TRUE, the closest point search will be performed along the normals only |
Amberg |
if TRUE the deformation will use the function |
rhotol |
maximal tolerated angle between normals to be considered a valid match |
reflm |
matrix containing 3D landmarks on the reference |
tarlm |
matrix containing 3D landmarks on the target surface |
forceLM |
if TRUE, predfined landmarks |
silent |
logical: supress debug output |
threads |
integer: number of threads to use for tps interpolation (set to 1 if using openblas, or otherwise it can become instable) |
... |
additional parameters passed to |
returns a deformed version of a model instance fitted to the target
Please note that it is required to align the target mesh to the reference mesh beforehand. This can be performed using the function icp
, for example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.