Class that maintains the collection of Training Images inside a Minos Training Set. More...
#include <cvb/minos/training_set.hpp>
Inherits InstanceInfoCollectionGeneric.
Public Member Functions | |
std::unique_ptr< InstanceInfo > | Add (const String &name, bool askForce, Point2D< double > location) |
Extract a new instance from the parent image and added it to the model with the specified name. More... | |
Public Member Functions inherited from InstanceInfoCollectionGeneric | |
int | Count () const |
Retrieves the number of elements in the collection. More... | |
std::unique_ptr< InstanceInfo > | ReadInfo (int index) const |
Retrieves the indexed instance information block. More... | |
std::vector< std::unique_ptr< InstanceInfo > > | ReadInfos () const |
Retrieves all the items stored in the collection. More... | |
int | IndexOf (const InstanceInfo &obj) const |
Determine the index of an image information object inside this collection. More... | |
bool | Remove (const InstanceInfo &instance) |
Remove an instance from the training set. More... | |
bool | RemoveAt (int index) |
Remove an instance from the training set. More... | |
Class that maintains the collection of Training Images inside a Minos Training Set.
|
inline |
Extract a new instance from the parent image and added it to the model with the specified name.
[in] | name | Name of the model to which to add the instance. |
[in] | askForce | Flag controlling the response to a failed correlation test. |
[in] | location | Location from which to extract the new instance; upon return from this function, the actual location will be corrected by the correlation test. |
Any | exception derived from std::exception including CvbException. |
If askForce is true, a messagebox appears asking if the user wants to force creation of a model, even though the sample has failed the correlation test.