|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.aam.CAAMSolver
public class CAAMSolver
Utillity class for solving the normalised cross correlation given the current synthetic image and the derivatives with respect to each model parameter.
| Constructor Summary | |
|---|---|
CAAMSolver(double[] f,
double[][] df)
Creates a new instance of CAAMSolver |
|
CAAMSolver(double[] f,
double[][] df,
BigMat hessian,
double[] fdotdf,
double fdotf)
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 |
static double |
getMean(double[] v)
Get the mean of the vector |
CAAMSolver |
getReduced(double[] weights)
Get a CAAMSolver with fewer degrees of freedom |
double[] |
getUpdate(double[] g)
get the update parameters for the given target data vector |
static void |
main(java.lang.String[] args)
Main method for testing |
static double |
ncc(double[] a,
double[] b)
Calculates the dot product between two arrays of equal length |
double[] |
reconstruct(double[] update)
Reconstructs given the update |
static void |
subtractMean(double[] v,
double mean)
Subtract the mean from the vector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CAAMSolver(double[] f,
double[][] df)
f - The current model vectordf - the derivatives of the current model
public CAAMSolver(double[] f,
double[][] df,
BigMat hessian,
double[] fdotdf,
double fdotf)
f - The current model vectordf - the derivatives of the current modelhessian - fdotf - fdotdf - | Method Detail |
|---|
public CAAMSolver getReduced(double[] weights)
weights - the weights
public static double getMean(double[] v)
v - teh input vector
public static void subtractMean(double[] v,
double mean)
v - the input vectormean - the mean value to subtractpublic double[] getUpdate(double[] g)
g - vector containing the measured data
public static double dotProduct(double[] a,
double[] b)
a - first arrayb - second array
public static double ncc(double[] a,
double[] b)
a - first arrayb - second array
public double[] reconstruct(double[] update)
update - the parameter update
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||