Back AAM-API documentation The AAM-Site

In file AAMVisualizer.h:

class CAAMVisualizer

Class that visualizes different aspects of a model.

Inheritance:

CAAMVisualizer


Public Methods

[more] CAAMVisualizer( const CAAMModel* pModel )
Constructor.
[more]bool CombinedMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const
Generates movies files showing each mode of combined variation.
[more]void OptimizationMovie( const std::vector<CAAMModel::CAAMOptState> &optStates, const CDMultiBand<TAAMPixel> &img, const char* filename, const int frameRate ) const
Visualizes the iterations during a model search.
[more]bool RegistrationMovie( const CString &filename, const std::vector<CDVector> &vTexture ) const
Generates a movie of the registered training set.
[more]bool ShapeMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const
Generates movies files showing each mode of shape variation.
[more]void ShapeStill( const CDMultiBand<TAAMPixel> &img, const CAAMShape &shape, const char* filename )
Plots a shape into an image and save it to disk.
[more]bool TextureMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const
Generates movies files showing each mode of texture variation.
[more]void WriteEigenImages() const
Writes the texture eigen modes as shape-free images.
[more]void WritePredictionImages() const
Writes the parameter update matrix as shape-free images.
[more] ~CAAMVisualizer()
Destructor.


Documentation

Class that visualizes different aspects of a model.

For visualization of e.g. annotations without a model see CAAMUtil.

o CAAMVisualizer( const CAAMModel* pModel )

Constructor that sets the model pointer.

Parameters:
pModel - Pointer to the model that you want visualised.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
5-8-2002

o ~CAAMVisualizer()

Destructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
5-8-2002

ovoid OptimizationMovie( const std::vector<CAAMModel::CAAMOptState> &optStates, const CDMultiBand<TAAMPixel> &img, const char* filename, const int frameRate ) const

This method visualizes the iterations during a model search. Output format is an AVI-file that you can put into e.g. Powerpoint to impress your supervisor with.

Parameters:
optStates - An array of optimization states.
img - The image used for model searching.
filename - The output movie filename, e.g. 'search.avi'.
frameRate - The number of frame per second.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
5-7-2002

ovoid ShapeStill( const CDMultiBand<TAAMPixel> &img, const CAAMShape &shape, const char* filename )

Plots a shape into an image and save it to disk.

Parameters:
img - Image to plot shape onto.
shape - Shape in image coordinates.
fileman - Destination image file, e.g. 'result.bmp'.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
5-7-2002

ovoid WriteEigenImages() const

This method converts each column of the texture eigen vectors into corresponding shape-free images and save them to disk in the BMP format.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-26-2002

ovoid WritePredictionImages() const

This method converts each column of the parameter update matrices into corresponding shape-free images and save them to disk in the BMP format.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-26-2002

obool TextureMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const

Generates movies files showing each mode of texture variation by adjusting the each mode of variation to

+/- 'range' times <the mode standard deviation>

in 2*'step'+1 steps.

Parameters:
filename - The output filename excl. extension.
nbModes - The number of modes to generate movies from.
range - The rendered range in standard deviations.
steps - The number of frames to generate to reach 'range'. Thus the total number of frames will be 2*step+1. (the +1 term is the mean texture).
whiteBackground - If true the background is rendered in white. Default is black.
Returns:
true on success, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-28-2000
See Also:
Shape, Combined

obool ShapeMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const

Generates movies files showing each mode of shape variation by adjusting the each mode of variation to

+/- 'range' times <the mode standard deviation>

in 2*'step'+1 steps.

Parameters:
filename - The output filename excl. extension.
nbModes - The number of modes to generate movies from.
range - The rendered range in standard deviations.
steps - The number of frames to generate to reach 'range'. Thus the total number of frames will be 2*step+1. (the +1 term is the mean shape).
whiteBackground - If true the background is rendered in white. Default is black.
Returns:
true on success, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-28-2000
See Also:
Texture, Combined

obool CombinedMovie( const CString &filename, const int nbModes, const double range, const int steps, const bool whiteBackground ) const

Generates movies files showing each mode of combined shape and texture variation by adjusting the each mode of variation to:

+/- 'range' times <the mode standard deviation>

in 2*'step'+1 steps.

Parameters:
filename - The output filename excl. extension.
nbModes - The number of modes to generate movies from.
range - The rendered range in standard deviations.
steps - The number of frames to generate to reach 'range'. Thus the total number of frames will be 2*step+1. (the +1 term is the mean shape).
whiteBackground - If true the background is rendered in white. Default is black.
Returns:
true on success, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-25-2000
See Also:
Texture, Shape

obool RegistrationMovie( const CString &filename, const std::vector<CDVector> &vTexture ) const

Generates a movie of the registered training set by warping each texture to the mean shape and output this to an AVI-file.

Parameters:
filename - The output filename.
- m_vTexture The vector of textures.
Returns:
true on succes, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-22-2000
See Also:
CombinedMovie, TextureMovie, ShapeMovie


This class has no child classes.
Author:
Mikkel B. Stegmann
Version:
5-8-2002
See Also:
CAAMUtil

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site