Public Member Functions | Protected Attributes | List of all members
alvar::TrackerFeaturesEC Class Reference

Version of TrackerFeatures using external container. More...

#include <EC.h>

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

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 More...
 
bool DelFeature (int index)
 
bool DelFeatureId (int 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. More...
 
void Purge ()
 Purge features that are considerably closer than the defined min_distance. More...
 
void Reset ()
 
double Reset (IplImage *img, IplImage *mask)
 
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. More...
 
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. More...
 
 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. More...
 
- Public Member Functions inherited from alvar::TrackerFeatures
int AddFeatures (IplImage *mask=NULL)
 add features to the previously tracked frame if there are less than min_features More...
 
void ChangeSettings (int _max_features=100, int _min_features=90, double _quality_level=0.01, double _min_distance=10)
 Change settings while running. More...
 
bool DelFeature (int index)
 Stop tracking the identified feature (with index for features array) More...
 
bool DelFeatureId (int id)
 Stop tracking the identified feature (with feature id) More...
 
IplImage * NewFeatureMask ()
 Create and get the pointer to new_features_mask. More...
 
int Purge ()
 Purge features that are considerably closer than the defined min_distance. More...
 
void Reset ()
 Reset. More...
 
double Reset (IplImage *img, IplImage *mask)
 Reset track features on specified mask area. More...
 
double Track (IplImage *img)
 Track features. More...
 
double Track (IplImage *img, bool add_features)
 Track features. More...
 
double Track (IplImage *img, IplImage *mask)
 Track features. More...
 
 TrackerFeatures (int _max_features=100, int _min_features=90, double _quality_level=0.01, double _min_distance=10, int _pyr_levels=1, int _win_size=3)
 Constructor for TrackerFeatures tracks features using OpenCV's cvGoodFeaturesToTrack and cvCalcOpticalFlowPyrLK. More...
 
 ~TrackerFeatures ()
 Destructor. More...
 
- Public Member Functions inherited from alvar::Tracker
virtual void Compensate (double *x, double *y)
 
 Tracker ()
 

Protected Attributes

bool purge
 
- Protected Attributes inherited from alvar::TrackerFeatures
int frame_count
 
IplImage * gray
 
IplImage * img_eig
 
IplImage * img_tmp
 
IplImage * mask
 
int max_features
 
double min_distance
 
int min_features
 
int next_id
 
IplImage * prev_gray
 
IplImage * prev_pyramid
 
int pyr_levels
 
IplImage * pyramid
 
double quality_level
 
char * status
 
int win_size
 
int x_res
 
int y_res
 

Additional Inherited Members

- Public Attributes inherited from alvar::TrackerFeatures
int feature_count
 Track result: count of current features More...
 
CvPoint2D32f * features
 Track result: current features More...
 
int * ids
 Track result: ID:s for current features More...
 
int prev_feature_count
 Track result: count of previous features More...
 
CvPoint2D32f * prev_features
 Track result: previous features More...
 
int * prev_ids
 Track result: ID:s for previous features More...
 
- Protected Member Functions inherited from alvar::TrackerFeatures
double TrackHid (IplImage *img, IplImage *mask=NULL, bool add_features=true)
 Reset track features on specified mask area. More...
 

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

Definition at line 387 of file EC.h.

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

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.

void alvar::TrackerFeaturesEC::Purge ( )
inline

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

Definition at line 384 of file EC.h.

void alvar::TrackerFeaturesEC::Reset ( )
inline

Definition at line 385 of file EC.h.

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

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

bool alvar::TrackerFeaturesEC::purge
protected

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 19:27:24