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

This class can be used to track features in a sequence of images. More...


Detailed Description

This class can be used to track features in a sequence of images.

It's a "fork" of EngineTracking class. The main differences :

Definition at line 34 of file EngineOfflineTracking.hpp.

#include <EngineOfflineTracking.hpp>

List of all members.

Public Member Functions

 EngineOfflineTracking (jafar::fdetect::Detector *detector, jafar::gfm::Matcher *matcher, jafar::fdetect::DescriptorFactory *descriptor=0)
const
jafar::fdetect::DetectionResult
currentPoints () const
void initTracking (jafar::image::Image const &image_ref)
MatchingResult nextImage (jafar::image::Image const &image_next, unsigned int indView)
void setOptFeatureIdForSequenceTracking (bool val)
 set the flag optFeatureIdForSequenceTracking.

Protected Member Functions

MatchSourceInfosourceInfoRef () const
Matchermatcher ()
fdetect::DescriptorFactorydescriptorFactory ()
fdetect::Detectordetector ()

Private Attributes

unsigned int nextId
fdetect::Detectorm_detector
fdetect::DescriptorFactorym_descriptorFactory
Matcherm_matcher
MatchSourceInfom_sourceInfoRef
bool optFeatureIdForSequenceTracking
 This flag is set by default to false.

Member Function Documentation

Parameters:
image_refthe first image of the sequence
MatchingResult jafar::gfm::EngineOfflineTracking::nextImage ( jafar::image::Image const &  image_next,
unsigned int  indView 
)
Parameters:
image_nextThe next image of the sequence
indViewIndex of image_next in the processed images sequence
Returns:
the matching between the next image and the previous image (either initialized with initTracking or given by a previous call to this function)

set the flag optFeatureIdForSequenceTracking.

It is set by default to false. If it is true, however, then the features (in the left image) are given an identificating index if they have a match in the right image. To do so, the member function of MatchingResult::propagateId(idxCounter) is used. o if left feature has id value -1, assign a new number to it, because it is a feature that has not been found yet in a previous image. Propagate this new value to the corresponding right feature (match) o if left feature has a valid id >= 0, just propagate the id to its match (right feature). This means, that the feature in the left image already was found in a previous frame pair of the image sequence. This flag was introduced for module traversability where there was a need to follow matches in sequences of images...

Definition at line 82 of file EngineOfflineTracking.hpp.

References optFeatureIdForSequenceTracking.


Member Data Documentation

This flag is set by default to false.

If it is true, then the features (in the left image) are given an identificating index if they have a match in the right image. The function propagateId(idxCounter) does the following: o if left feature has id value -1, assign a new number to it, because it is a feature that has not been found yet in a previous image. Propagate this new value to the corresponding right feature (match) o if left feature has a valid id >= 0, just propagate the id to its match (right feature). This means, that the feature in the left image already was found in a previous frame pair of the image sequence. This flag was introduced for module traversability where there was a need to follow matches in sequences of images...

Definition at line 115 of file EngineOfflineTracking.hpp.

Referenced by setOptFeatureIdForSequenceTracking().


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