LocalShapeVariables: Local Shape Variables

LocalShapeVariablesR Documentation

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
)

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

Value

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

Author(s)

Guilherme Garcia

Diogo Melo


evolqg documentation built on Aug. 8, 2023, 5:12 p.m.