retroDeformMesh: symmetrize a triangular mesh
Description
symmetrize a triangular meshUsage
retroDeformMesh(mesh, mat, pairedLM, hmult = 5, alpha = 0.01, rot = TRUE,
lambda = 0)
Arguments
mesh
triangular mesh of class mesh3d
mat
matrix with bilateral landmarks
pairedLM
2-column integer matrix with the 1st columns containing row indices of left side landmarks and 2nd column the right hand landmarks
hmult
damping factor for calculating local weights
alpha
factor controlling spacing along x-axis
rot
logical: if TRUE the deformed landmarks are rotated back onto the original ones
lambda
control parameter passed to tps3d
Value
- meshsymmetrized mesh
- landmarksa list containing the deformed and original bilateral landmarks