TrackerFeature based on HAAR features, used by TrackerMIL and many others algorithms.
More...
#include "tracker.hpp"
TrackerFeature based on HAAR features, used by TrackerMIL and many others algorithms.
- Note
- HAAR features implementation is copied from apps/traincascade and modified according to MIL
cv::TrackerFeatureHAAR::~TrackerFeatureHAAR |
( |
| ) |
|
bool cv::TrackerFeatureHAAR::computeImpl |
( |
const std::vector< Mat > & |
images, |
|
|
Mat & |
response |
|
) |
| |
|
protectedvirtual |
bool cv::TrackerFeatureHAAR::extractSelected |
( |
const std::vector< int > |
selFeatures, |
|
|
const std::vector< Mat > & |
images, |
|
|
Mat & |
response |
|
) |
| |
Compute the features only for the selected indices in the images collection.
- Parameters
-
selFeatures | indices of selected features |
images | The images |
response | Collection of response for the specific TrackerFeature |
Get the feature in position id.
- Parameters
-
void cv::TrackerFeatureHAAR::selection |
( |
Mat & |
response, |
|
|
int |
npoints |
|
) |
| |
|
virtual |
Identify most effective features.
- Parameters
-
response | Collection of response for the specific TrackerFeature |
npoints | Max number of features |
- Note
- This method modifies the response parameter
Implements cv::TrackerFeature.
bool cv::TrackerFeatureHAAR::swapFeature |
( |
int |
source, |
|
|
int |
target |
|
) |
| |
Swap the feature in position source with the feature in position target.
- Parameters
-
source | The source position |
target | The target position |
Swap the feature in position id with the feature input.
- Parameters
-
id | The position |
feature | The feature |
The documentation for this class was generated from the following file:
- /Users/build/test/opencv_contrib/modules/tracking/include/opencv2/tracking/tracker.hpp