Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes
jafar::oracle::ObjectIdentifier Class Reference

Class ObjectIdentifier This class is in charge of querying the Interest Feature Database about an unknown object image. More...


Detailed Description

Class ObjectIdentifier This class is in charge of querying the Interest Feature Database about an unknown object image.

It could either be called with the detector, matcher and sequenece matching result of the learning process or using the file name of the interest features saved model

Definition at line 60 of file objectIdentifier.hpp.

#include <objectIdentifier.hpp>

List of all members.

Public Member Functions

 ObjectIdentifier ()
 Default constructor.
 ObjectIdentifier (const ModelsDatabase &database)
 Generic constructor database : models database.
 ~ObjectIdentifier ()
 Destructor.
void addModel (const std::string &_modelName, oracle::ObjectLoader *_loader)
 add a model of object to the objects identifier database
void addModel (const std::string &_modelName, oracle::ObjectLoader *_loader, oracle::ObjectRecognizer *_recognizer)
 add a model of object to the objects identifier database
oracle::ModelIterator getModel (const std::string &_modelName)
 get a model of object from the database
void setQueryImage (const image::Image &_query)
 set database query
void setModelsDatabase (const ModelsDatabase &database)
 set database
std::vector< std::string > identifiedObjects () const
void process ()
 main methode to be called for identification

Private Types

enum  IdentificationResult { FAILED_IDENTIFICATION, CONFIRMED_IDENTIFICATION, AMBIGOUS_IDENTIFICATION }

Private Member Functions

void initialTry ()
 initial try
void tryAgain (const gfm::DetectionResult &dr)
 normal try
void evaluateResult ()
 evaluate processing result
gfm::DetectionResult remainingFeatures (const gfm::DetectionResult &dr, const gfm::MatchingResult &mr)
 compute unmatched features for the next trial
bool isMatchedFeature (gfm::InterestFeature *f, const gfm::MatchingResult &mr)
 says whether f is an aleready matched feature or not
ResultIterator bestRecognitionResult ()
ModelIterator bestModel ()

Private Attributes

gfm::DetectionResult m_detectedFeatures
 detection result on the request image
gfm::MatchingResult m_matchedFeatures
 matching result between request image and saved features
ModelsDatabase m_database
 database of objects models
RecognitionResults results
 Recognition results for the models.
oracle::ObjectRecognizerm_recognizer
 object recognizer
image::Image request
 request
IdentificationResult m_result
 best recognition result
std::vector< std::string > plausibles
 list of plausible objects
gfm::DetectionResult remaining

Member Function Documentation

ModelIterator jafar::oracle::ObjectIdentifier::bestModel ( ) [private]
Returns:
an iterator on the best model
Returns:
an iterator on the best recognition result
std::vector<std::string> jafar::oracle::ObjectIdentifier::identifiedObjects ( ) const [inline]
Returns:
list of plausible identified objects

Definition at line 113 of file objectIdentifier.hpp.

References plausibles.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS