interface for all algorithms that can be executed by the AlgorithmSelector More...
#include <Algorithm.h>
Public Member Functions | |
Algorithm () | |
virtual T | Perform (std::vector< Sensor * > sensors, RelPose *pose, Signature &object, int &numOfObjects, double &qualityMeasure)=0 |
Performs the main action of the algorithm (online) | |
virtual | ~Algorithm () |
Static Public Member Functions | |
static Algorithm< T > * | AlgFactory (XMLTag *tag) |
Factory for all knwon Algorithms, this function has to be adapted when a new algorithm is added! |
interface for all algorithms that can be executed by the AlgorithmSelector
class Algorithm
Definition at line 73 of file Algorithm.h.
cop::Algorithm< T >::Algorithm | ( | ) | [inline] |
Constructor
Definition at line 82 of file Algorithm.h.
virtual cop::Algorithm< T >::~Algorithm | ( | ) | [inline, virtual] |
Empty Destructor
Definition at line 94 of file Algorithm.h.
Algorithm< T > * Algorithm::AlgFactory | ( | XMLTag * | tag | ) | [static] |
Factory for all knwon Algorithms, this function has to be adapted when a new algorithm is added!
AlgFactory
tag | contains the identifier and the information about the algorithm |
Definition at line 12 of file Algorithm.hpp.
virtual T cop::Algorithm< T >::Perform | ( | std::vector< Sensor * > | sensors, |
RelPose * | pose, | ||
Signature & | object, | ||
int & | numOfObjects, | ||
double & | qualityMeasure | ||
) | [pure virtual] |
Performs the main action of the algorithm (online)
Perform
sensors | a list of sensors that look at the specified position |
pose | Estimated position of the scene, mostly the center of the image (if the camera can be moved) |
object | in/out A signature class that contains all model information about a certain object or a class of objects. This object will retrieve the results of the algorithm |
numOfObjects | in/out The number of instances that should be detected of this signature atmost, it will be filled with 0 .. numOfObjects on exit and should contain the information how many objects were found |
qualityMeasure | out this param will should a score that can be used to evaluate the algorithm in this situation |
Implemented in cop::AttentionAlgorithm, cop::LocateAlgorithm, cop::RemoteAttention< Message >, cop::ProveAlgorithm, and cop::RefineAlgorithm.