Public Member Functions | Protected Attributes
alvar::TrackerFeaturesEC Class Reference

Version of TrackerFeatures using external container. More...

#include <EC.h>

Inheritance diagram for alvar::TrackerFeaturesEC:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<typename T >
bool AddFeatures (std::map< int, T > &container, int type_id=0, int first_id=0, int last_id=65535)
 add features to the previously tracked frame if there are less than min_features
bool DelFeature (int index)
 Stop tracking the identified feature (with index for features array)
bool DelFeatureId (int id)
 Stop tracking the identified feature (with feature id)
template<typename T >
int EraseNonTracked (std::map< int, T > &container, int type_id=-1)
 Erases the items matching with type_id having has_p2d == false . If type_id == -1 doesn't test the type.
void Purge ()
 Purge features that are considerably closer than the defined min_distance.
void Reset ()
 Reset.
double Reset (IplImage *img, IplImage *mask)
 Reset track features on specified mask area.
template<typename T >
bool Track (IplImage *img, IplImage *mask, std::map< int, T > &container, int type_id=-1, int first_id=-1, int last_id=-1)
 Track features with matching type id. New features will have id's in the specified id range.
template<typename T , typename F >
bool Track (IplImage *img, IplImage *mask, std::map< int, T > &container, F do_handle_test, int type_id=0, int first_id=-1, int last_id=-1)
 Track features matching the given functor. New features will have id's in the specified id range.
 TrackerFeaturesEC (int _max_features=100, int _min_features=90, double _quality_level=0.01, double _min_distance=10, int _pyr_levels=4, int win_size=6)
 Constructor.

Protected Attributes

bool purge

Detailed Description

Version of TrackerFeatures using external container.

Definition at line 252 of file EC.h.


Constructor & Destructor Documentation

alvar::TrackerFeaturesEC::TrackerFeaturesEC ( int  _max_features = 100,
int  _min_features = 90,
double  _quality_level = 0.01,
double  _min_distance = 10,
int  _pyr_levels = 4,
int  win_size = 6 
) [inline]

Constructor.

Definition at line 257 of file EC.h.


Member Function Documentation

template<typename T >
bool alvar::TrackerFeaturesEC::AddFeatures ( std::map< int, T > &  container,
int  type_id = 0,
int  first_id = 0,
int  last_id = 65535 
) [inline]

add features to the previously tracked frame if there are less than min_features

Definition at line 358 of file EC.h.

bool alvar::TrackerFeaturesEC::DelFeature ( int  index) [inline]

Stop tracking the identified feature (with index for features array)

Reimplemented from alvar::TrackerFeatures.

Definition at line 387 of file EC.h.

bool alvar::TrackerFeaturesEC::DelFeatureId ( int  id) [inline]

Stop tracking the identified feature (with feature id)

Reimplemented from alvar::TrackerFeatures.

Definition at line 388 of file EC.h.

template<typename T >
int alvar::TrackerFeaturesEC::EraseNonTracked ( std::map< int, T > &  container,
int  type_id = -1 
) [inline]

Erases the items matching with type_id having has_p2d == false . If type_id == -1 doesn't test the type.

Definition at line 375 of file EC.h.

Purge features that are considerably closer than the defined min_distance.

Note, that we always try to maintain the smaller id's assuming that they are older ones

Reimplemented from alvar::TrackerFeatures.

Definition at line 384 of file EC.h.

Reset.

Reimplemented from alvar::TrackerFeatures.

Definition at line 385 of file EC.h.

double alvar::TrackerFeaturesEC::Reset ( IplImage *  img,
IplImage *  mask 
) [inline]

Reset track features on specified mask area.

Reimplemented from alvar::TrackerFeatures.

Definition at line 386 of file EC.h.

template<typename T >
bool alvar::TrackerFeaturesEC::Track ( IplImage *  img,
IplImage *  mask,
std::map< int, T > &  container,
int  type_id = -1,
int  first_id = -1,
int  last_id = -1 
) [inline]

Track features with matching type id. New features will have id's in the specified id range.

Definition at line 262 of file EC.h.

template<typename T , typename F >
bool alvar::TrackerFeaturesEC::Track ( IplImage *  img,
IplImage *  mask,
std::map< int, T > &  container,
do_handle_test,
int  type_id = 0,
int  first_id = -1,
int  last_id = -1 
) [inline]

Track features matching the given functor. New features will have id's in the specified id range.

Track features matching the given functor. If first_id >= 0 we call AddFeatures with the specified id range.

Definition at line 311 of file EC.h.


Member Data Documentation

Definition at line 254 of file EC.h.


The documentation for this class was generated from the following file:


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 21:12:55