Learn R Programming

evolqg (version 0.3-4)

LocalShapeVariables: Local Shape Variables

Description

Calculates the local shape variables of a set of landmarks using the sequence: - TPS transform between all shapes and the mean shape - Jacobian of the TPS transforms at the centroid of rows of the landmarks in the tesselation argument - Mean center the Jacobians using the Karcher Mean - Take the determinant of the centered jacobians

Usage

LocalShapeVariables(
  gpa = NULL,
  cs = NULL,
  landmarks = NULL,
  tesselation,
  run_parallel = FALSE
)

Value

List with TPS functions, jacobian matrices, local shape variables, mean shape, centroid sizes and individual IDs

Arguments

gpa

Procustes aligned landmarks.

cs

Centoid sizes

landmarks

unaligned landmarks. Ignored if both gpa and cs are passed.

tesselation

matrix of rows of the landmarks. The centroid of each row is used to mark the position of the jacobians

run_parallel

Logical. If computation should be paralleled. Use with caution, can make things worse. Requires that at parallel back-end like doMC be registered

Author

Guilherme Garcia

Diogo Melo