|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.aam.TaylorSolver
public class TaylorSolver
Utillity class for solving the normalised cross correlation given the current synthetic image and the derivatives with respect to each model parameter.
Constructor Summary | |
---|---|
TaylorSolver(double[] f,
double[][] df)
Creates a new instance of CAAMSolver |
Method Summary | |
---|---|
static double |
dotProduct(double[] a,
double[] b)
Calculates the dot product between two arrays of equal length |
double[] |
getUpdate(double[] g)
get the update parameters for the given target data vector |
BigMat |
getV()
Gets the matrix of principal components (derived from SVD of hessian matrix) |
double[] |
getWeights()
Get the diagonal matrix of singular values |
double[] |
reconstruct(double[] update)
Reconstruct from the weights update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaylorSolver(double[] f, double[][] df)
f
- The current model vectordf
- the derivatives of the current modelMethod Detail |
---|
public BigMat getV()
public double[] getWeights()
public double[] getUpdate(double[] g)
g
- vector containing the measured data
public static double dotProduct(double[] a, double[] b)
a
- first arrayb
- second array
public double[] reconstruct(double[] update)
update
- the update vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |