statismoBuildModel: generate a statistical model using an array of superimposed...

Description Usage Arguments Value See Also Examples

View source: R/statismoBuildModel.r

Description

generate a statistical model using an array of superimposed landmarks

Usage

1
2
statismoBuildModel(x, representer, sigma = 0, scale = FALSE,
  SelfAdjointEigenSolver = FALSE)

Arguments

x

array of aligned 3D-coordinates or a list of aligned registered meshes.

representer

matrix or triangular mesh of class "mesh3d" with vertices corresponding to rows in the array.

sigma

noise in the data

scale

logical: set to TRUE, if scaling was involved in the registration.

SelfAdjointEigenSolver

logical: if TRUE SelfAdjointEigenSolver is used during model building. Only use this if sample size exceeds amount of variables (faster but less accurate) - can lead to errors otherwise.

Value

an object of class pPCA (pPCA-class)

See Also

pPCA, pPCA-class, rigidAlign, meshalign

Examples

1
2
3
4
5
6
require(Morpho)
data(boneData)
align <- rigidAlign(boneLM)$rotated
mymod <- statismoBuildModel(align,representer=align[,,1],sigma=2,scale=TRUE)
## save it
statismoSaveModel(mymod,"mymod.h5")

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