CVB++ 14.0
ImageInstanceInfoCollection Class Reference

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

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...
 
InstanceInfo ReadInfo (int index) const
 Retrieves the indexed instance information block. More...
 
std::vector< InstanceInfoReadInfos () 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...
 

Detailed Description

Class that maintains the collection of Training Images inside a Minos Training Set.

Member Function Documentation

◆ Add()

InstanceInfo Add ( const String name,
bool  askForce,
Point2D< double >  location 
)
inline

Extract a new instance from the parent image and added it to the model with the specified name.

Parameters
[in]nameName of the model to which to add the instance.
[in]askForceFlag controlling the response to a failed correlation test.
[in]locationLocation from which to extract the new instance; upon return from this function, the actual location will be corrected by the correlation test.
Returns
An InstanceInfo object that represents the newly added instance.
Exceptions
Anyexception 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.