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

Tracker is a wrapper class for the possible feature matchers and trackers available within JAFAR. More...


Detailed Description

Tracker is a wrapper class for the possible feature matchers and trackers available within JAFAR.

Primarilly, it includes the matchers provided by the module GFM and the KLT-Tracker. With the help of the enum TrackerType one can select which kind of tracker that has to be applied.

Definition at line 66 of file trv_tracker.hpp.

#include <trv_tracker.hpp>

List of all members.

Public Member Functions

 Tracker (TrackerType tt=TRV_NONE, int nFeautres=1000, int bufferSize=100)
 Constructor.
void track (jafar::image::Image &im0, jafar::image::Image &im1)
 Track features between two images and store the resulting matches (that are stored in a MatchingContainer ) into the buffer (exception: TrackerType TRV_GFM: does not make use of the buffer.
MatchesContainermatches (const int idx0=0, const int idx1=1)
 Get matches, read them out of the matches buffer (exception: TrackerType TRV_GFM: does not make use of the buffer.
MatchesContainerreadMatches (std::string filename)
 Read matches from file.
TrackerType getTrackerType (void) const

Private Attributes

TrackerType mTrackerType
float mImScale
int mFeatures
int mBufferSize
int mBufferCnt
MatchesContainer mMatches
jafar::gfm::EnginemGfmEngine
jafar::gfm::MatchingResult mGfmMr
jafar::gfm::EngineOfflineTrackingmGfmEngineTr
MatchesContainer ** mGfmBuffer
jafar::klt::KltmKltEngine
KLT_TrackingContext mKltTC
KLT_FeatureList mKltFL
KLT_FeatureTable mKltFT

Constructor & Destructor Documentation

jafar::traversability::Tracker::Tracker ( TrackerType  tt = TRV_NONE,
int  nFeautres = 1000,
int  bufferSize = 100 
)

Constructor.

Initializes the type of tracker to be applied. Optionally, one can set some parameters for the tracker. This however has to be ameliorated!

Parameters:
tttracker type, one of the possiblity provided by TrackerType
nFeautresnumber of features (used only for KLT), default 1000
bufferSizesize of the (circular) buffer used to store temporarily the matches

Member Function Documentation

MatchesContainer* jafar::traversability::Tracker::matches ( const int  idx0 = 0,
const int  idx1 = 1 
)

Get matches, read them out of the matches buffer (exception: TrackerType TRV_GFM: does not make use of the buffer.

See documentation). It returns the matches in an object MatchingContainer

Parameters:
idx0idx of the first image source in the buffer
idx1idx of the second image source in the buffer
Returns:
a MatchingContainer containing the matches between the images with idx0 and idx1

Read matches from file.

This file must have the following format: -> # lines with preceeding '#' are ignored -> u_0 v_0 u_1 v_1

Parameters:
filenamename of the file where the matches are found
Returns:
the matches, contained in a MatchingContainer

Track features between two images and store the resulting matches (that are stored in a MatchingContainer ) into the buffer (exception: TrackerType TRV_GFM: does not make use of the buffer.

See documentation). This is the main function of this class.

Parameters:
im0first image of type jafar::image::Image.
im1second image of type jafar::image::Image.

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:51 for Jafar by doxygen 1.7.6.1
LAAS-CNRS