miniSQmodel: minimize mean squared distance between model and a...

View source: R/modelFitting.r

miniSQmodelR Documentation

minimize mean squared distance between model and a point-cloud with correspondences

Description

minimize mean squared distance between model and a point-cloud with correspondences

Usage

miniSQmodel(
  clost,
  model,
  iterations = 10,
  initpar = NULL,
  use = NULL,
  sdmax = NULL,
  mahaprob = c("none", "chisq", "dist"),
  ...
)

Arguments

clost

matrix or mesh3d

model

statismo model of class pPCA

iterations

integer: max number of iterations passed to lbfgs

initpar

initial estimate of the model parameters

use

integer vector: which points to use

sdmax

constrain parameters (normalized PC-scores) to be within +- sdmax

mahaprob

character: if != "none", use mahalanobis-distance to determine overall probability (of the shape projected into the model space."chisq" uses the Chi-Square distribution of the squared Mahalanobisdistance, while "dist" restricts the values to be within a multi-dimensional sphere of radius sdmax. If FALSE the probability will be determined per PC separately.

...

additional parameters to be passed to lbfgs.

Value

par

the model's parameters

mesh

the fitted mesh


zarquon42b/mesheR documentation built on Jan. 28, 2024, 2:17 p.m.