OpenCV
4.7.0
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 <opencv2/tracking/tracking_internals.hpp>
Public Member Functions | |
TrackerContribSampler () | |
Constructor. More... | |
~TrackerContribSampler () | |
Destructor. More... | |
bool | addTrackerSamplerAlgorithm (String trackerSamplerAlgorithmType) |
Add TrackerContribSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise. More... | |
bool | addTrackerSamplerAlgorithm (Ptr< TrackerContribSamplerAlgorithm > &sampler) |
const std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > & | getSamplers () const |
Return the collection of the TrackerContribSamplerAlgorithm. More... | |
const std::vector< Mat > & | getSamples () const |
Return the samples from all TrackerContribSamplerAlgorithm, [214] 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
[214] Sampling e Labeling. See table I and section III B
TrackerContribSampler is an aggregation of TrackerContribSamplerAlgorithm
cv::detail::tracking::TrackerContribSampler::TrackerContribSampler | ( | ) |
Constructor.
cv::detail::tracking::TrackerContribSampler::~TrackerContribSampler | ( | ) |
Destructor.
bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm | ( | String | trackerSamplerAlgorithmType | ) |
Add TrackerContribSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise.
trackerSamplerAlgorithmType | The TrackerContribSamplerAlgorithm name |
The modes available now:
Example TrackerContribSamplerAlgorithm::addTrackerContribSamplerAlgorithm : :
bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm | ( | Ptr< TrackerContribSamplerAlgorithm > & | 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 TrackerContribSamplerAlgorithm |
const std::vector<std::pair<String, Ptr<TrackerContribSamplerAlgorithm> > >& cv::detail::tracking::TrackerContribSampler::getSamplers | ( | ) | const |
Return the collection of the TrackerContribSamplerAlgorithm.
const std::vector<Mat>& cv::detail::tracking::TrackerContribSampler::getSamples | ( | ) | const |
Return the samples from all TrackerContribSamplerAlgorithm, [214] 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 |