Jafar
|
Class ObjectIdentifier This class is in charge of querying the Interest Feature Database about an unknown object image. More...
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>
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::ObjectRecognizer * | m_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 |
ModelIterator jafar::oracle::ObjectIdentifier::bestModel | ( | ) | [private] |
ResultIterator jafar::oracle::ObjectIdentifier::bestRecognitionResult | ( | ) | [private] |
std::vector<std::string> jafar::oracle::ObjectIdentifier::identifiedObjects | ( | ) | const [inline] |
Definition at line 113 of file objectIdentifier.hpp.
References plausibles.
Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |