CVB++ 15.0
Loading...
Searching...
No Matches
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

std::unique_ptr< InstanceInfoAdd (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.
 
- Public Member Functions inherited from InstanceInfoCollectionGeneric
int Count () const
 Retrieves the number of elements in the collection.
 
std::unique_ptr< InstanceInfoReadInfo (int index) const
 Retrieves the indexed instance information block.
 
std::vector< std::unique_ptr< InstanceInfo > > ReadInfos () const
 Retrieves all the items stored in the collection.
 
int IndexOf (const InstanceInfo &obj) const
 Determine the index of an image information object inside this collection.
 
bool Remove (const InstanceInfo &instance)
 Remove an instance from the training set.
 
bool RemoveAt (int index)
 Remove an instance from the training set.
 

Detailed Description

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

Member Function Documentation

◆ Add()

std::unique_ptr< 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.