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

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


Detailed Description

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>

List of all members.

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::vec2detectedFeatures ()
std::map< int, geom::Point2Ddetected2DPoints ()
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::GroupsMatcherm_matcher
 groups matcher
gfm::DetectionResult reqDetectResult
 Detection result on the request Image.
gfm::MatchSourceInforeqSourceInfo
 Match Source Info corresponding to the detection result reqDetectResult.
std::map< gfm::MatchingResult,
int, ltMRst
mrMap
 Matching Result Map.

Member Function Documentation

Returns:
a ratio of matched/detected features
Returns:
a map of detected features in the request image
Returns:
a map of detected features in the request image
gfm::DetectionResult jafar::oracle::ObjectRecognizer::detectionResult ( ) const [inline]
Returns:
detection result on the request image

Definition at line 114 of file objectRecognizer.hpp.

References reqDetectResult.

Returns:
the best matching vector
Returns:
est view id that matches the request image
Returns:
request image (namely for display purpose mainly)

Definition at line 104 of file objectRecognizer.hpp.

References reqImg.

Returns:
request image (namely for display purpose)

Definition at line 108 of file objectRecognizer.hpp.

References reqImgFileName.


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