OpenCV
4.1.0
Open Source Computer Vision
|
TrackerStateEstimatorAdaBoosting based on ADA-Boosting. More...
#include <opencv2/tracking/tracker.hpp>
Classes | |
class | TrackerAdaBoostingTargetState |
Implementation of the target state for TrackerAdaBoostingTargetState. More... | |
Public Member Functions | |
TrackerStateEstimatorAdaBoosting (int numClassifer, int initIterations, int nFeatures, Size patchSize, const Rect &ROI) | |
Constructor. | |
~TrackerStateEstimatorAdaBoosting () | |
Destructor. | |
std::vector< int > | computeReplacedClassifier () |
Get the list of the weak classifiers that should be replaced. | |
std::vector< int > | computeSelectedWeakClassifier () |
Get the list of the selected weak classifiers for the classification step. | |
std::vector< int > | computeSwappedClassifier () |
Get the list of the weak classifiers that replace those to be replaced. | |
Rect | getSampleROI () const |
Get the sampling ROI. | |
void | setCurrentConfidenceMap (ConfidenceMap &confidenceMap) |
Set the current confidenceMap. | |
void | setSampleROI (const Rect &ROI) |
Set the sampling ROI. | |
Public Member Functions inherited from cv::TrackerStateEstimator | |
virtual | ~TrackerStateEstimator () |
Ptr< TrackerTargetState > | estimate (const std::vector< ConfidenceMap > &confidenceMaps) |
Estimate the most likely target state, return the estimated state. | |
String | getClassName () const |
Get the name of the specific TrackerStateEstimator. | |
void | update (std::vector< ConfidenceMap > &confidenceMaps) |
Update the ConfidenceMap with the scores. | |
Protected Member Functions | |
Ptr< TrackerTargetState > | estimateImpl (const std::vector< ConfidenceMap > &confidenceMaps) CV_OVERRIDE |
void | updateImpl (std::vector< ConfidenceMap > &confidenceMaps) CV_OVERRIDE |
Protected Attributes | |
Ptr < StrongClassifierDirectSelection > | boostClassifier |
Protected Attributes inherited from cv::TrackerStateEstimator | |
String | className |
Additional Inherited Members | |
Static Public Member Functions inherited from cv::TrackerStateEstimator | |
static Ptr< TrackerStateEstimator > | create (const String &trackeStateEstimatorType) |
Create TrackerStateEstimator by tracker state estimator type. | |
TrackerStateEstimatorAdaBoosting based on ADA-Boosting.
cv::TrackerStateEstimatorAdaBoosting::TrackerStateEstimatorAdaBoosting | ( | int | numClassifer, |
int | initIterations, | ||
int | nFeatures, | ||
Size | patchSize, | ||
const Rect & | ROI | ||
) |
Constructor.
numClassifer | Number of base classifiers |
initIterations | Number of iterations in the initialization |
nFeatures | Number of features/weak classifiers |
patchSize | tracking rect |
ROI | initial ROI |
cv::TrackerStateEstimatorAdaBoosting::~TrackerStateEstimatorAdaBoosting | ( | ) |
Destructor.
std::vector<int> cv::TrackerStateEstimatorAdaBoosting::computeReplacedClassifier | ( | ) |
Get the list of the weak classifiers that should be replaced.
std::vector<int> cv::TrackerStateEstimatorAdaBoosting::computeSelectedWeakClassifier | ( | ) |
Get the list of the selected weak classifiers for the classification step.
std::vector<int> cv::TrackerStateEstimatorAdaBoosting::computeSwappedClassifier | ( | ) |
Get the list of the weak classifiers that replace those to be replaced.
|
protectedvirtual |
Implements cv::TrackerStateEstimator.
Rect cv::TrackerStateEstimatorAdaBoosting::getSampleROI | ( | ) | const |
Get the sampling ROI.
void cv::TrackerStateEstimatorAdaBoosting::setCurrentConfidenceMap | ( | ConfidenceMap & | confidenceMap | ) |
Set the current confidenceMap.
confidenceMap | The current :cConfidenceMap |
void cv::TrackerStateEstimatorAdaBoosting::setSampleROI | ( | const Rect & | ROI | ) |
Set the sampling ROI.
ROI | the sampling ROI |
|
protectedvirtual |
Implements cv::TrackerStateEstimator.
|
protected |