symm_templates: Symmetrize landmark templates

Description Usage Arguments Value Examples

View source: R/symm_templates.R

Description

Mirrors landmark templates for each specimen and calculates mean of original and mirrored template (see also mirror_templates)

Usage

1

Arguments

data

Array holding landmark data of dimensions p, k, and n. p = number of landmarks, k = dimension (2D or 3D), n = number of specimens.

mirroredlandmarks

Vector specifying order of mirrored landmarks

Value

Returns array containing symmetrized landmark data

Examples

1
2
3
4
5
6
7
data(LondonSet_aligned)
data(mirroredlandmarks)

symm <- symm_templates(LondonSet_aligned, mirroredlandmarks)

geomorph::plotAllSpecimens(LondonSet_aligned)
geomorph::plotAllSpecimens(symm)

iholzleitner/facefuns documentation built on March 19, 2021, 2:43 p.m.