OpenCV
3.4.3
Open Source Computer Vision
|
Class that manages the sampler in order to select regions for the update the model of the tracker [AAM] Sampling e Labeling. See table I and section III B. More...
#include "tracker.hpp"
Public Member Functions | |
TrackerSampler () | |
Constructor. More... | |
~TrackerSampler () | |
Destructor. More... | |
bool | addTrackerSamplerAlgorithm (String trackerSamplerAlgorithmType) |
Add TrackerSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise. More... | |
bool | addTrackerSamplerAlgorithm (Ptr< TrackerSamplerAlgorithm > &sampler) |
const std::vector< std::pair< String, Ptr< TrackerSamplerAlgorithm > > > & | getSamplers () const |
Return the collection of the TrackerSamplerAlgorithm. More... | |
const std::vector< Mat > & | getSamples () const |
Return the samples from all TrackerSamplerAlgorithm, [165] Fig. 1 variable Sk. More... | |
void | sampling (const Mat &image, Rect boundingBox) |
Computes the regions starting from a position in an image. More... | |
Class that manages the sampler in order to select regions for the update the model of the tracker [AAM] Sampling e Labeling. See table I and section III B.
Class that manages the sampler in order to select regions for the update the model of the tracker
[165] Sampling e Labeling. See table I and section III B
TrackerSampler is an aggregation of TrackerSamplerAlgorithm
cv::TrackerSampler::TrackerSampler | ( | ) |
Constructor.
cv::TrackerSampler::~TrackerSampler | ( | ) |
Destructor.
bool cv::TrackerSampler::addTrackerSamplerAlgorithm | ( | String | trackerSamplerAlgorithmType | ) |
Add TrackerSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise.
trackerSamplerAlgorithmType | The TrackerSamplerAlgorithm name |
The modes available now:
Example TrackerSamplerAlgorithm::addTrackerSamplerAlgorithm : :
bool cv::TrackerSampler::addTrackerSamplerAlgorithm | ( | Ptr< TrackerSamplerAlgorithm > & | sampler | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
sampler | The TrackerSamplerAlgorithm |
const std::vector<std::pair<String, Ptr<TrackerSamplerAlgorithm> > >& cv::TrackerSampler::getSamplers | ( | ) | const |
Return the collection of the TrackerSamplerAlgorithm.
const std::vector<Mat>& cv::TrackerSampler::getSamples | ( | ) | const |
Return the samples from all TrackerSamplerAlgorithm, [165] Fig. 1 variable Sk.
Computes the regions starting from a position in an image.
image | The current frame |
boundingBox | The bounding box from which regions can be calculated |