TrackerFeatures tracks features using OpenCV's cvGoodFeaturesToTrack and cvCalcOpticalFlowPyrLK
More...
#include <TrackerFeatures.h>
|
| 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...
|
| |
| virtual void | Compensate (double *x, double *y) |
| |
| | Tracker () |
| |
|
| double | TrackHid (IplImage *img, IplImage *mask=NULL, bool add_features=true) |
| | Reset track features on specified mask area. More...
|
| |
TrackerFeatures tracks features using OpenCV's cvGoodFeaturesToTrack and cvCalcOpticalFlowPyrLK
- Examples:
- SampleTrack.cpp.
Definition at line 40 of file TrackerFeatures.h.
| alvar::TrackerFeatures::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.
- Parameters
-
| _max_features | The maximum amount of features to be tracked |
| _min_features | The minimum amount of features. The featureset is filled up when the number of features is lower than this. |
| _quality_level | Multiplier for the maxmin eigenvalue; specifies minimal accepted quality of image corners. |
| _min_distance | Limit, specifying minimum possible distance between returned corners; Euclidian distance is used. If 0 given we use default value aiming for uniform cover: _min_distance = 0.8*sqrt(x_res*y_res/max_features)) |
| _pyr_levels | Number of pyramid levels |
Definition at line 32 of file TrackerFeatures.cpp.
| alvar::TrackerFeatures::~TrackerFeatures |
( |
| ) |
|
| int alvar::TrackerFeatures::AddFeatures |
( |
IplImage * |
mask = NULL | ) |
|
add features to the previously tracked frame if there are less than min_features
Definition at line 227 of file TrackerFeatures.cpp.
| void alvar::TrackerFeatures::ChangeSettings |
( |
int |
_max_features = 100, |
|
|
int |
_min_features = 90, |
|
|
double |
_quality_level = 0.01, |
|
|
double |
_min_distance = 10 |
|
) |
| |
| bool alvar::TrackerFeatures::DelFeature |
( |
int |
index | ) |
|
Stop tracking the identified feature (with index for features array)
Definition at line 105 of file TrackerFeatures.cpp.
| bool alvar::TrackerFeatures::DelFeatureId |
( |
int |
id | ) |
|
| IplImage * alvar::TrackerFeatures::NewFeatureMask |
( |
| ) |
|
| int alvar::TrackerFeatures::Purge |
( |
| ) |
|
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
- Examples:
- SampleTrack.cpp.
Definition at line 122 of file TrackerFeatures.cpp.
| void alvar::TrackerFeatures::Reset |
( |
| ) |
|
| double alvar::TrackerFeatures::Reset |
( |
IplImage * |
img, |
|
|
IplImage * |
mask |
|
) |
| |
| double alvar::TrackerFeatures::Track |
( |
IplImage * |
img | ) |
|
|
inlinevirtual |
| double alvar::TrackerFeatures::Track |
( |
IplImage * |
img, |
|
|
bool |
add_features |
|
) |
| |
| double alvar::TrackerFeatures::Track |
( |
IplImage * |
img, |
|
|
IplImage * |
mask |
|
) |
| |
| double alvar::TrackerFeatures::TrackHid |
( |
IplImage * |
img, |
|
|
IplImage * |
mask = NULL, |
|
|
bool |
add_features = true |
|
) |
| |
|
protected |
| int alvar::TrackerFeatures::feature_count |
| CvPoint2D32f* alvar::TrackerFeatures::features |
| int alvar::TrackerFeatures::frame_count |
|
protected |
| IplImage* alvar::TrackerFeatures::gray |
|
protected |
| int* alvar::TrackerFeatures::ids |
| IplImage* alvar::TrackerFeatures::img_eig |
|
protected |
| IplImage* alvar::TrackerFeatures::img_tmp |
|
protected |
| IplImage* alvar::TrackerFeatures::mask |
|
protected |
| int alvar::TrackerFeatures::max_features |
|
protected |
| double alvar::TrackerFeatures::min_distance |
|
protected |
| int alvar::TrackerFeatures::min_features |
|
protected |
| int alvar::TrackerFeatures::next_id |
|
protected |
| int alvar::TrackerFeatures::prev_feature_count |
| CvPoint2D32f* alvar::TrackerFeatures::prev_features |
| IplImage* alvar::TrackerFeatures::prev_gray |
|
protected |
| int* alvar::TrackerFeatures::prev_ids |
| IplImage* alvar::TrackerFeatures::prev_pyramid |
|
protected |
| int alvar::TrackerFeatures::pyr_levels |
|
protected |
| IplImage* alvar::TrackerFeatures::pyramid |
|
protected |
| double alvar::TrackerFeatures::quality_level |
|
protected |
| char* alvar::TrackerFeatures::status |
|
protected |
| int alvar::TrackerFeatures::win_size |
|
protected |
| int alvar::TrackerFeatures::x_res |
|
protected |
| int alvar::TrackerFeatures::y_res |
|
protected |
The documentation for this class was generated from the following files: