AmbergDeformSpam | R Documentation |
Perform smooth deformation of a triangular mesh, minimizing per-face distortions.
AmbergDeformSpam(
mesh,
lm1,
lm2,
k0 = 1,
lambda = 1,
S = NULL,
Hchol = NULL,
clean = FALSE,
ridgetol = 1e-08
)
mesh |
triangular mesh of class "mesh3d". No loose vertices, edges and degenerated faces are allowed. |
lm1 |
m x 3 matrix containing correspondences on "mesh" |
lm2 |
m x 3 matrix containing target correspondences |
k0 |
integer: parameter regularizing face normal distortion. |
lambda |
numeric: parameter regularizing faces's distortion. |
S |
optional: object from function createS from previous calculation. |
Hchol |
Cholesky decomposition of Hessian (obtained by a previous run of AmbergDeformSpam), speeds up things significantly. |
clean |
logical: if TRUE, |
ridgetol |
in case of a singular matrix, this value will be added to the diagonal (similar to a ridge regression) to avoid singularity. |
Perform smooth deformation of a triangular mesh, minimizing per-face distortions.No loose vertices, edges and degenerated faces are allowed, as they lead to singular equation system.
mesh |
deformed mesh |
Jn |
Jacobi submatrix Jn |
Jc |
Jacobi submatrix Jc |
J |
Jacobian matrix |
H |
Hessian of J, class "spam" |
Hchol |
Cholesky decomposition of H; class"spam" |
Stefan Schlager
Amberg, B. 2011. Editing faces in videos, University of Basel.
gaussMatch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.