Jafar
|
Class ObjectRecognizer This class is in charge of querying the Interest Feature Database about an unknown object image. More...
Class ObjectRecognizer 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 37 of file objectRecognizer.hpp.
#include <objectRecognizer.hpp>
Classes | |
struct | ltMRst |
the least Matching Result structure used as comparator for the map More... | |
Public Member Functions | |
ObjectRecognizer () | |
Default constructor. | |
ObjectRecognizer (gfm::Detector *_detector, gfm::GroupsMatcher *_matcher, premodeler::SequenceMR _smr) | |
Generic constructor _detector : detecto used in learning proces _matcher : groups matcher used in learning process _smr : sequence matching result (returned in premodeler::Engine) | |
~ObjectRecognizer () | |
Destructor. | |
void | setRequestImage (const image::Image &_reqImg) |
setter for the request image | |
void | setRequestImage (const std::string &_reqImgFileName) |
setter for the request image | |
void | setDetector (gfm::Detector *_detector) |
setter for the detector | |
void | setMatcher (gfm::GroupsMatcher *_matcher) |
setter for the groups matcher | |
void | setSequenceMatchingResult (const premodeler::SequenceMR &_smr) |
setter for the sequence matching result | |
void | process () |
main methode | |
std::map< int, jblas::vec2 > | detectedFeatures () |
std::map< int, geom::Point2D > | detected2DPoints () |
image::Image | requestImage () const |
std::string | requestImageFileName () const |
void | setDetectionResult (const gfm::DetectionResult &_reqDetectionResult) |
set detection result | |
gfm::DetectionResult | detectionResult () const |
int | getBestView () const |
gfm::vMatches | getBestMatchesVector () const |
double | bestMatchingRatio () const |
gfm::MatchingResult | bestMatchingResult () const |
void | mergeImages (const std::string &mergedImageName="/home/nksallem/Desktop/merge.ppm") |
merges the request image with the best matching view | |
Protected Member Functions | |
int | nextViewToProceed () |
Private Attributes | |
premodeler::SequenceMR | smr |
sequence matching result | |
image::Image | reqImg |
request Image | |
std::string | reqImgFileName |
request umage file name | |
gfm::Detector * | m_detector |
detector used to identify interest points | |
gfm::GroupsMatcher * | m_matcher |
groups matcher | |
gfm::DetectionResult | reqDetectResult |
Detection result on the request Image. | |
gfm::MatchSourceInfo * | reqSourceInfo |
Match Source Info corresponding to the detection result reqDetectResult. | |
std::map< gfm::MatchingResult, int, ltMRst > | mrMap |
Matching Result Map. |
double jafar::oracle::ObjectRecognizer::bestMatchingRatio | ( | ) | const |
std::map<int, geom::Point2D> jafar::oracle::ObjectRecognizer::detected2DPoints | ( | ) |
std::map<int, jblas::vec2> jafar::oracle::ObjectRecognizer::detectedFeatures | ( | ) |
gfm::DetectionResult jafar::oracle::ObjectRecognizer::detectionResult | ( | ) | const [inline] |
Definition at line 114 of file objectRecognizer.hpp.
References reqDetectResult.
gfm::vMatches jafar::oracle::ObjectRecognizer::getBestMatchesVector | ( | ) | const |
int jafar::oracle::ObjectRecognizer::getBestView | ( | ) | const |
image::Image jafar::oracle::ObjectRecognizer::requestImage | ( | ) | const [inline] |
Definition at line 104 of file objectRecognizer.hpp.
References reqImg.
std::string jafar::oracle::ObjectRecognizer::requestImageFileName | ( | ) | const [inline] |
Definition at line 108 of file objectRecognizer.hpp.
References reqImgFileName.
Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |