inline const CAAMModel& Model( const int i ) const
- Get the model at level i
inline const int NModels() const
- Get the number of models
inline const CAAMModel& FinalModel() const
- Get the final model
int ModelScale(int i) const
- Returns the model reduction at that level
CAAMModelSeq()
-
Default multi-scale constructor.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 2-20-2003
~CAAMModelSeq()
-
Destructor.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 2-20-2003
void 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
void 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
bool 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
bool 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
void 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
void 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