Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
jafar::gfm_v2::AllTimeTracker< DESCRIPTOR > Class Template Reference

Class AllTimeTracker [detects] and matches features over an image sequence. More...


Detailed Description

template<typename DESCRIPTOR>
class jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >

Class AllTimeTracker [detects] and matches features over an image sequence.

It does the matching on a pair base but also does the match on behalf of all the previous unmatched features.

Remarks:
A features global id is propagated on each matching result, so no need to do it after.

Definition at line 21 of file AllTimeTracker.hpp.

#include <AllTimeTracker.hpp>

Inheritance diagram for jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >:
Inheritance graph
[legend]

List of all members.

Classes

struct  features_comp
 compare 2 interest features lhf and rhf More...

Public Types

typedef
fdetect_v2::InterestFeature
< DESCRIPTOR > 
Feature
typedef
fdetect_v2::DetectionResult
< DESCRIPTOR > 
DR
typedef gfm_v2::MatchingResult
< DESCRIPTOR > 
MR

Public Member Functions

 AllTimeTracker (jafar::fdetect_v2::Detector< DESCRIPTOR > *detector, jafar::gfm_v2::Matcher< DESCRIPTOR > *matcher, unsigned int start=0, jafar::fdetect_v2::DescriptorFactory< DESCRIPTOR > *descriptor=0)
 constructor with parameters
void initTracking (jafar::image::Image const &image_ref, unsigned int id)
void initTracking (jafar::image::Image const &image_ref, jafar::image::Image const &mask_ref, unsigned int id)
void initTracking (fdetect_v2::DetectionResult< DESCRIPTOR > &points_ref, unsigned int id)
MR nextImage (jafar::image::Image const &image_next, unsigned int id)
MR nextImage (jafar::image::Image const &image_next, jafar::image::Image const &mask_next, unsigned int id)
MR nextImage (DR &points_next, unsigned int id=geom::InterestPoint::NO_ID)

Private Types

typedef std::map< unsigned int,
typename std::set< Feature
*, features_comp > >::iterator 
unmatched_iterator

Private Member Functions

void matchWithOthers (DR &local_unmatched)
 match a detection result with previous ones except the last

Private Attributes

std::map< unsigned int,
std::set< Feature
*, features_comp > > 
unmatched
 unmatched features set
unsigned int global_id
 global fetaures id
unsigned int initial_id
 initial DR id
unsigned int second_id
 second DR id
DR previous_points
 previous detection result
MR current_match
 current matching result
DR current_unmatched
 current unmatched features

Constructor & Destructor Documentation

template<typename DESCRIPTOR >
jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::AllTimeTracker ( jafar::fdetect_v2::Detector< DESCRIPTOR > *  detector,
jafar::gfm_v2::Matcher< DESCRIPTOR > *  matcher,
unsigned int  start = 0,
jafar::fdetect_v2::DescriptorFactory< DESCRIPTOR > *  descriptor = 0 
) [inline]

constructor with parameters

Parameters:
detector,:interest features detector
matcher,:interest features matcher
start,:the features id counter starting value. 0
descriptor,:fetures descriptor factory 0

Definition at line 93 of file AllTimeTracker.hpp.


Member Function Documentation

template<typename DESCRIPTOR >
void jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking ( jafar::image::Image const &  image_ref,
unsigned int  id 
) [inline]
Parameters:
image_refthe first image of the sequence
idthe id for initial detection result

Reimplemented from jafar::gfm_v2::EngineTracking< DESCRIPTOR >.

Definition at line 104 of file AllTimeTracker.hpp.

Referenced by jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking().

template<typename DESCRIPTOR >
void jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking ( jafar::image::Image const &  image_ref,
jafar::image::Image const &  mask_ref,
unsigned int  id 
) [inline]
Parameters:
image_refthe first image of the sequence
idthe id for initial detection result

Reimplemented from jafar::gfm_v2::EngineTracking< DESCRIPTOR >.

Definition at line 114 of file AllTimeTracker.hpp.

References jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initial_id, jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking(), and JFR_PRECOND.

template<typename DESCRIPTOR >
void jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking ( fdetect_v2::DetectionResult< DESCRIPTOR > &  points_ref,
unsigned int  id 
) [inline]
Parameters:
points_refthe first detection result
idthe id for initial detection result
Remarks:
The descriptor factory isn't called in this function

Reimplemented from jafar::gfm_v2::EngineTracking< DESCRIPTOR >.

Definition at line 129 of file AllTimeTracker.hpp.

References jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initial_id, jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::initTracking(), and JFR_PRECOND.

template<typename DESCRIPTOR >
MR jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::nextImage ( jafar::image::Image const &  image_next,
unsigned int  id 
) [inline]
Parameters:
image_nextThe next image of the sequence
idThe id for this detection result
Returns:
the matching between the next image and the previous image (either initialized with initTracking or given by a previous call to this function)

Reimplemented from jafar::gfm_v2::EngineTracking< DESCRIPTOR >.

Definition at line 144 of file AllTimeTracker.hpp.

template<typename DESCRIPTOR >
MR jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::nextImage ( jafar::image::Image const &  image_next,
jafar::image::Image const &  mask_next,
unsigned int  id 
) [inline]
template<typename DESCRIPTOR >
MR jafar::gfm_v2::AllTimeTracker< DESCRIPTOR >::nextImage ( DR points_next,
unsigned int  id = geom::InterestPoint::NO_ID 
) [inline]

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