Back AAM-API documentation The AAM-Site

In file AAMTest.h:

class CAAMTest

Container for all sorts of test functions.

Inheritance:

CAAMTest - CAAMObject


Public Methods

[more]void AnalyzeTest( const CAAMShape &refShape, const CAAMShape &s, const CDMultiBand<TAAMPixel> &image, const bool useConvexHull )
Benchmarks the software warping method against the OpenGL ditto.
[more] CAAMTest()
Constructor.
[more]CAAMEvaluationResults EvaluateModel( const CAAMModel* pModel, const CString &gt_path, const CString &result_file, const bool writeStills, const bool writeMovies, const bool autoinit, const bool dump2screen, CAAMLowerBounds* pLB )
Optimizes a set of images and compares the result to a ground truth annotation.
[more]CAAMEvaluationResults EvaluateModelSeq( const CAAMModelSeq &modelSeq, const CString &gt_path, const CString &result_file, const bool writeStills, const bool writeMovies, const bool autoinit, const bool dump2screen, CAAMLowerBounds* pLB )
Optimizes a set of images and compares the result to a ground truth annotation using a sequence of AAMs.
[more]void GetRotationTest( const CAAMShape &s1, const CAAMShape &s2 )
Tests CAAMShape:GetRotation() for rotations in the range [0;360].
[more]void TestPosePrediction( const CAAMModel &model, const CString &path )
Tests the prediction matrices ability to predict pose displacements.
[more] ~CAAMTest()
Destructor.


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

Container for all sorts of test functions. In this way a history of all mock-up test functions developed during debugging and testing are kept.

All functions are implemented as static functions. Thus no instantiation the CAAMTest are needed.

o CAAMTest()

Constructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
3-5-2001

o ~CAAMTest()

Destructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
3-5-2001

ovoid GetRotationTest( const CAAMShape &s1, const CAAMShape &s2 )

Tests CAAMShape:GetRotation() for rotations in the range [0;360].

Parameters:
s1 - First shape.
s2 - Second shape.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
3-5-2001

ovoid AnalyzeTest( const CAAMShape &refShape, const CAAMShape &s, const CDMultiBand<TAAMPixel> &image, const bool useConvexHull )

Benchmarks the software warping method against the OpenGL ditto.

Parameters:
refShape - Reference shape, i.e. mean shape scale to mean size.
s - Input shape in relative or absolute coordinates.
image - Host image of 's'.
useConvexHull - If true the convex hull is used.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
6-13-2002

ovoid TestPosePrediction( const CAAMModel &model, const CString &path )

Output are returned in the form of eight matlab formatted files in the current directory.

Parameters:
model - The AAM to test.
path - The path where test images and annotations are placed (including terminating backslash).
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
3-27-2000

oCAAMEvaluationResults EvaluateModel( const CAAMModel* pModel, const CString &gt_path, const CString &result_file, const bool writeStills, const bool writeMovies, const bool autoinit, const bool dump2screen, CAAMLowerBounds* pLB )

Optimizes a set of images and compares the result to a ground truth annotation. As initialization the ground truth pose is systematically displaced (default) or an automatic initialisation is performed.

Parameters:
model - The model to evaluate.
gt_path - Path to ground truth images and annotations.
result_file - The file to write the results in.
writeStills - If true two model border images are written; one of the initialisation and one of the optimization.
writeMovies - It true a movie of the whole optimization is written, one frame per iteration.
autoinit - If true automatic initialization is performed instead of the systematic displacement of the ground truth pose.
dump2screen - If true, results are written to the screen also (default true).
pLB - Optional pointer to a CAAMLowerBounds object.
Returns:
Evaluation results.
Author:
Mikkel B. Stegmann
Version:
4-5-2000

oCAAMEvaluationResults EvaluateModelSeq( const CAAMModelSeq &modelSeq, const CString &gt_path, const CString &result_file, const bool writeStills, const bool writeMovies, const bool autoinit, const bool dump2screen, CAAMLowerBounds* pLB )

Optimizes a set of images and compares the result to a ground truth annotation using a sequence of AAMs. As initialization the ground truth pose is systematically displaced (default) or an automatic initialisation is performed.

Parameters:
modelSew - A sequence of models.
gt_path - Path to ground truth images and annotations.
result_file - The file to write the results in.
writeStills - If true two model border images are written; one of the initialisation and one of the optimization.
writeMovies - It true a movie of the whole optimization is written, one frame per iteration.
autoinit - If true automatic initialization is performed instead of the systematic displacement of the ground truth pose.
dump2screen - If true, results are written to the screen also (default true).
pLBS - Optional pointer to a CAAMLBShapeModel object.
Returns:
Evaluation results.
Author:
Mikkel B. Stegmann
Version:
4-5-2000


This class has no child classes.
Author:
Mikkel B. Stegmann
Version:
03-05-2001

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site