OpenCV453
公開メンバ関数 | 全メンバ一覧
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 [詳解]

#include <tracking_internals.hpp>

公開メンバ関数

 TrackerContribSampler ()
 Constructor
 
 ~TrackerContribSampler ()
 Destructor
 
void sampling (const Mat &image, Rect boundingBox)
 Computes the regions starting from a position in an image [詳解]
 
const std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > & getSamplers () const
 Return the collection of the TrackerContribSamplerAlgorithm
 
const std::vector< Mat > & getSamples () const
 Return the samples from all TrackerContribSamplerAlgorithm, [AAM] Fig. 1 variable Sk
 
bool addTrackerSamplerAlgorithm (String trackerSamplerAlgorithmType)
 Add TrackerContribSamplerAlgorithm in the collection. Return true if sampler is added, false otherwise [詳解]
 
bool addTrackerSamplerAlgorithm (Ptr< TrackerContribSamplerAlgorithm > &sampler)
 

詳解

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

参照
TrackerContribSamplerAlgorithm

関数詳解

◆ addTrackerSamplerAlgorithm() [1/2]

bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm ( Ptr< TrackerContribSamplerAlgorithm > &  sampler)

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

引数
samplerThe TrackerContribSamplerAlgorithm

◆ addTrackerSamplerAlgorithm() [2/2]

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

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

引数
trackerSamplerAlgorithmTypeThe TrackerContribSamplerAlgorithm name

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" );
覚え書き
If you use the second method, you must initialize the TrackerContribSamplerAlgorithm

◆ sampling()

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

Computes the regions starting from a position in an image

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

このクラス詳解は次のファイルから抽出されました: