Class that maintains the collection of Training Images inside a Minos Training Set.
More...
#include <cvb/minos/training_set.hpp>
Class that maintains the collection of Training Images inside a Minos Training Set.
◆ Add()
Add a new model (plus the first instance of that model) to the training set.
- Parameters
-
[in] | image | Image from which to extract the first instance (needs to be taken from the TrainingSet::Images(). |
[in] | name | Name of the model to be generation. |
[in] | location | Position in the image from which to extract the first instance. |
[in] | featureWindow | Feature window of the model to be generated. |
- Exceptions
-
◆ Contains()
bool Contains |
( |
const String & |
name | ) |
|
|
inline |
Check if the collection contains a model with the specified name.
- Parameters
-
[in] | name | Name for which to check the collection. |
- Returns
- True if the collection contains at least one model with the specified name, false otherwise.
- Exceptions
-
◆ Count()
Retrieves the number of elements in the collection.
- Returns
- Number of elements in the collection.
- Exceptions
-
◆ IndexOf()
Determine the index of an image information object inside this collection.
- Parameters
-
[in] | obj | Object for which to determine the index. |
- Returns
- Index through which the object can be accessed within this collection if it is part of this collection, -1 otherwise.
- Exceptions
-
Note that the returned index may be invalidated by Remove calls.
◆ ReadInfo()
Retrieves the indexed model information block.
- Parameters
-
[in] | index | Index of the collection to be accessed. |
- Returns
- Model information.
- Exceptions
-
◆ ReadInfos()
Retrieves all the items stored in the collection.
- Returns
- The collection items.
- Exceptions
-
◆ Remove()
Remove a model (and all the instances extracted for that model!) from the training set.
- Parameters
-
[in] | model | Model to be removed from the training set. |
- Returns
- True if the model has been removed successfully, false otherwise.
- Exceptions
-
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!
◆ RemoveAt()
bool RemoveAt |
( |
int |
index | ) |
|
|
inline |
Remove a model (and all the instances extracted for that model!) from the training set.
- Parameters
-
[in] | index | Index of the training set model to be removed. |
- Returns
- True if the model has been removed successfully, false otherwise.
- Exceptions
-
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!
◆ SetGlobalAdvanceVector()
void SetGlobalAdvanceVector |
( |
Point2D< double > |
vec | ) |
|
|
inline |
Set an advance vector for all available models.
- Parameters
-
[in] | vec | Advance vector to be set for all models. |
- Exceptions
-