Class cv::detail::tracking::TrackerContribSampler#

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. View details

Collaboration diagram for cv::detail::tracking::TrackerContribSampler:

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

AAM Sampling e Labeling. See table I and section III B

TrackerContribSampler is an aggregation of TrackerContribSamplerAlgorithm

See also

TrackerContribSamplerAlgorithm

Constructor & Destructor Documentation#

TrackerContribSampler()#

cv::detail::tracking::TrackerContribSampler::TrackerContribSampler()

Constructor.

~TrackerContribSampler()#

cv::detail::tracking::TrackerContribSampler::~TrackerContribSampler()

Destructor.

Member Function Documentation#

addTrackerSamplerAlgorithm()#

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.

Parameters

addTrackerSamplerAlgorithm()#

bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm(String trackerSamplerAlgorithmType)

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

The modes available now:

  • “CSC” Current State Center

  • “CS” Current State

  • “PF” Particle Filtering

Example TrackerContribSamplerAlgorithm::addTrackerContribSamplerAlgorithm : :

TrackerContribSamplerCSC::Params CSCparameters;
Ptr<TrackerContribSamplerAlgorithm> CSCSampler = new TrackerContribSamplerCSC( CSCparameters );

if( !sampler->addTrackerSamplerAlgorithm( CSCSampler ) )
  return false;

//or add CSC sampler with default parameters
//sampler->addTrackerSamplerAlgorithm( "CSC" );

Note

If you use the second method, you must initialize the TrackerContribSamplerAlgorithm

Parameters

getSamplers()#

const std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > & cv::detail::tracking::TrackerContribSampler::getSamplers()

Return the collection of the TrackerContribSamplerAlgorithm.

getSamples()#

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

Return the samples from all TrackerContribSamplerAlgorithm, [259] Fig. 1 variable Sk.

sampling()#

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

Computes the regions starting from a position in an image.

Parameters

  • image — The current frame

  • boundingBox — The bounding box from which regions can be calculated

clearSamples()#

void cv::detail::tracking::TrackerContribSampler::clearSamples()

Member Data Documentation#

blockAddTrackerSampler#

bool cv::detail::tracking::TrackerContribSampler::blockAddTrackerSampler

samplers#

std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > cv::detail::tracking::TrackerContribSampler::samplers

samples#

std::vector< Mat > cv::detail::tracking::TrackerContribSampler::samples

Source file#

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