AmbergDeformSpam: Deform triangular mesh based on correspondences

View source: R/Amberg2011.r

AmbergDeformSpamR Documentation

Deform triangular mesh based on correspondences

Description

Perform smooth deformation of a triangular mesh, minimizing per-face distortions.

Usage

AmbergDeformSpam(
  mesh,
  lm1,
  lm2,
  k0 = 1,
  lambda = 1,
  S = NULL,
  Hchol = NULL,
  clean = FALSE,
  ridgetol = 1e-08
)

Arguments

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, vcgClean from package Rvcg is run to remove duplicated and unreferenced vertices from the mesh and preventing segfaults.

ridgetol

in case of a singular matrix, this value will be added to the diagonal (similar to a ridge regression) to avoid singularity.

Details

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.

Value

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"

Author(s)

Stefan Schlager

References

Amberg, B. 2011. Editing faces in videos, University of Basel.

See Also

gaussMatch


zarquon42b/mesheR documentation built on Jan. 28, 2024, 2:17 p.m.