Description Usage Arguments Value See Also Examples
View source: R/statismoBuildModel.r
generate a statistical model using an array of superimposed landmarks
1 2 | statismoBuildModel(x, representer, sigma = 0, scale = FALSE,
SelfAdjointEigenSolver = FALSE)
|
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. |
an object of class pPCA (pPCA-class
)
pPCA, pPCA-class, rigidAlign, meshalign
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.