OpenCV  4.5.1
Open Source Computer Vision
Public Member Functions | List of all members
cv::detail::tracking::TrackerSampler Class Reference

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/video/detail/tracking.private.hpp>

Public Member Functions

 TrackerSampler ()
 
 ~TrackerSampler ()
 
bool addTrackerSamplerAlgorithm (const Ptr< TrackerSamplerAlgorithm > &sampler)
 Add TrackerSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise. More...
 
const std::vector< Ptr< TrackerSamplerAlgorithm > > & getSamplers () const
 Return the collection of the TrackerSamplerAlgorithm. More...
 
const std::vector< Mat > & getSamples () const
 Return the samples from all TrackerSamplerAlgorithm, [203] Fig. 1 variable Sk. More...
 
void sampling (const Mat &image, Rect boundingBox)
 Computes the regions starting from a position in an image. More...
 

Detailed Description

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

[203] Sampling e Labeling. See table I and section III B

TrackerSampler is an aggregation of TrackerSamplerAlgorithm

See also
TrackerSamplerAlgorithm

Constructor & Destructor Documentation

◆ TrackerSampler()

cv::detail::tracking::TrackerSampler::TrackerSampler ( )

◆ ~TrackerSampler()

cv::detail::tracking::TrackerSampler::~TrackerSampler ( )

Member Function Documentation

◆ addTrackerSamplerAlgorithm()

bool cv::detail::tracking::TrackerSampler::addTrackerSamplerAlgorithm ( const Ptr< TrackerSamplerAlgorithm > &  sampler)

Add TrackerSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise.

Parameters
samplerThe TrackerSamplerAlgorithm

◆ getSamplers()

const std::vector<Ptr<TrackerSamplerAlgorithm> >& cv::detail::tracking::TrackerSampler::getSamplers ( ) const

Return the collection of the TrackerSamplerAlgorithm.

◆ getSamples()

const std::vector<Mat>& cv::detail::tracking::TrackerSampler::getSamples ( ) const

Return the samples from all TrackerSamplerAlgorithm, [203] Fig. 1 variable Sk.

◆ sampling()

void cv::detail::tracking::TrackerSampler::sampling ( const Mat image,
Rect  boundingBox 
)

Computes the regions starting from a position in an image.

Parameters
imageThe current frame
boundingBoxThe bounding box from which regions can be calculated

The documentation for this class was generated from the following file: