Back AAM-API documentation The AAM-Site

In file AAMOptimize.h:

class CAAMOptimize

General purpose optimization of the AAM.

Inheritance:

CAAMOptimize - CAAMObject


Public Methods

[more]inline double EvalFunction(CDVector& vX)
Fuction to be optimized.
[more]void OptResults( CDVector &c, CAAMShape &s, double &fit )
Returns the optimisation results as c, shape and error.

Private Fields

[more]double m_dMinFit
The minimum fit
[more]int m_iSimilarityMeasure
The similarity measure to be used
[more]const CDMultiBand<TAAMPixel> * m_pImage
The image where the optimization shuold be done
[more]const CAAMModel* m_pModel
The AAM
[more]const CAAMShape* m_pShape
The initial shape pose
[more]CAAMShape m_sMinShape
The minimum fit shape
[more]CDVector m_vDiff
The difference vector
[more]CDVector m_vMinC
The minimum fit model parameters


Inherited from CAAMObject:

Public Methods

ovoid Dump( const char* szPath ) const
ovoid FromFile( const char* szFilename )
ovoid FromFile( FILE* fh )
ovoid ToFile( FILE* fh ) const
ovoid ToFile( const char* szFilename ) const


Documentation

Class for optimizing the AAM using traditional optimization methods such as simluated annealingm, conjugated gradient, steepest descent, BGFS and pattern search.

oconst CAAMModel* m_pModel
The AAM

oconst CAAMShape* m_pShape
The initial shape pose

oconst CDMultiBand<TAAMPixel> * m_pImage
The image where the optimization shuold be done

oint m_iSimilarityMeasure
The similarity measure to be used

oCDVector m_vDiff
The difference vector

odouble m_dMinFit
The minimum fit

oCAAMShape m_sMinShape
The minimum fit shape

oCDVector m_vMinC
The minimum fit model parameters

oinline double EvalFunction(CDVector& vX)

Function providing a scalar interpretation of the AAM fit based on a set of paramters.

Parameters:
vX - The independent parameters that will be optimized. The first n-4 elements constitues the normal model parameters of the AAM. The last four are the pose parameters.
Returns:
The scalar fit of the AAM.
Author:
Mikkel B. Stegmann
Version:
7-7-2000
See Also:

ovoid OptResults( CDVector &c, CAAMShape &s, double &fit )

Returns the optimisation results as c, shape and error. This is to avoid and extra conversion after ended optimisation, and worse, an extra image sampling to get the error.

Parameters:
c - The optimal model parameters.
s - The optimal shape.
s - The optimal error.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
7-7-2000


This class has no child classes.
Author:
Mikkel B. Stegmann
Version:
7-8-2000

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site