meshalign: align meshes stored in a list by their vertices

Description Usage Arguments Value Examples

View source: R/alignment.r

Description

align meshes stored in a list by their vertices

Usage

1
2
meshalign(meshlist, scale = FALSE, use.lm = NULL, deselect = FALSE,
  array = FALSE, reference = NULL, reflection = FALSE)

Arguments

meshlist

list containing triangular meshes of class "mesh3d"

scale

logical: request scaling during alignment

use.lm

integer vector: specifies the indices of the points that are to be used in the constrained model

deselect

logical: if TRUE, missingIndex references the existing coordinates instead of the missing ones.

array

logical: if TRUE the superimposed vertices will be returned as 3D array.

reference

integer: instead of a GPA, all specimens are aligned to this specific one.

reflection

logical: if TRUE, reflections are allowed to minimzie squared distance.

Value

returns a list of aligned meshes or an array of dimensions k x 3 x n, where k=number of vertices and n=sample size.

Examples

1
2
3
mod <- statismoLoadModel(system.file("extdata","mandibles.h5",package="RvtkStatismo"))
shapes <- restoreSamples(mod)
newalign <- meshalign(shapes,reference=1)

zarquon42b/RvtkStatismo documentation built on May 4, 2019, 9:09 p.m.