Back AAM-API documentation The AAM-Site

In file AAMModelSeq.h:

class CAAMModelSeq

AAM sequence object.

Inheritance:

CAAMModelSeq - CAAMObject


Public Methods

[more]void BuildFromSACF( const CString &SACF, const CString &inDir, const int excludeShape )
Diver method for model generation.
[more]void BuildFromSACF( const CString &SACF, const std::vector<CString> &asfFiles, const int excludeShape )
Diver method for model generation.
[more] CAAMModelSeq()
Default multi-scale constructor.
[more]inline const CAAMModel& FinalModel() const
Get the final model
[more]inline const CAAMModel& Model( const int i ) const
Get the model at level i
[more]int ModelScale(int i) const
Returns the model reduction at that level
[more]inline const int NModels() const
Get the number of models
[more]bool ReadModels( const CString &samf )
Reads the complete AAMModel from disk.
[more]void ScaleShape2Final( const int model, CAAMShape &shape ) const
Scale a shape defined in 'model' coordinates to 'FinalModel' coordinates.
[more]void ScaleShape2Model( const int model, CAAMShape &shape ) const
Scale a shape defined in 'FinalModel' coordinates to 'model' coordinates.
[more]bool WriteModels( const CString &filename, const bool txt_only ) const
Writes the sequence AAM to disk as a set of .txt and .amf files.
[more] ~CAAMModelSeq()
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

AAM sequence object. This is a generalisation of a multi-scale model.

oinline const CAAMModel& Model( const int i ) const
Get the model at level i

oinline const int NModels() const
Get the number of models

oinline const CAAMModel& FinalModel() const
Get the final model

oint ModelScale(int i) const
Returns the model reduction at that level

o CAAMModelSeq()

Default multi-scale constructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-20-2003

o ~CAAMModelSeq()

Destructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-20-2003

ovoid BuildFromSACF( const CString &SACF, const CString &inDir, const int excludeShape )

This method automates the model generation as much as possible by using the various class methods for all the sequences in the task of producing a model.

Parameters:
SACF - Filename of a sequence ACF, which is a file containing a list of acfs, one per line. E.g. <BOF> scale4_convex_hull.acf scale4_whiskers.acf scale4.acf scale2.acf scale1.acf <EOF>
inDir - Input directory where annotations (.asf) resides.
excludeShape - Excludes one shape number 'excludeShape' from the input directory. Default -1, i.e. no shapes are removed. Used to perform leave-one-out testing.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-20-2003

ovoid BuildFromSACF( const CString &SACF, const std::vector<CString> &asfFiles, const int excludeShape )

This method automates the model generation as much as possible by using the various class methods for all the sequences in the task of producing a model.

Parameters:
SACF - Filename of a sequence ACF, which is a file containing a list of acfs, one per line. E.g. <BOF> scale4_convex_hull.acf scale4_whiskers.acf scale4.acf scale2.acf scale1.acf <EOF>
asfFiles - Vector of asf filenames.
excludeShape - Excludes one shape number 'excludeShape' from the input directory. Default -1, i.e. no shapes are removed. Used to perform leave-one-out testing.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-20-2003

obool WriteModels( const CString &filename, const bool txt_only ) const

Writes the sequence AAM to disk as a set of .txt and .amf files. Filenames are determined from the ACF file names.

Parameters:
filename - Filename of the output .samf-file.
txt_only - If true, binary model data is not written.
Returns:
true on success, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-20-2003
See Also:
ReadModel

obool ReadModels( const CString &samf )

Reads the complete AAMModel from disk.

Parameters:
filename - Input filename (.samf).
Returns:
true on success, false on file errors.
Author:
Mikkel B. Stegmann
Version:
2-20-2003
See Also:
WriteModel

ovoid ScaleShape2Model( const int model, CAAMShape &shape ) const

Scale a shape defined in 'FinalModel' coordinates to 'model' coordinates .

Parameters:
model - The model the input shape are scaled to.
shape - Input shape, which going to be scaled.
Returns:

Author:
Mikkel B. Stegmann
Version:
2-20-2003
See Also:
ScaleShape2Final

ovoid ScaleShape2Final( const int model, CAAMShape &shape ) const

Scale a shape defined in 'model' coordinates to 'FinalModel' coordinates.

Parameters:
model - The model the input shape are scaled from.
shape - Input shape, which going to be scaled.
Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
2-20-2003
See Also:
ScaleShape2Model


This class has no child classes.
Author:
Mikkel B. Stegmann
Version:
2-20-2003
See Also:
CAAMModel, CAAMModelMS

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site