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
~CAAMVisualizer()
-
Destructor.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 5-8-2002
void 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
void 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
void 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
void 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
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 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
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 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
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 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
bool 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