OpenCV  3.4.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::TrackerSamplerAlgorithm Class Referenceabstract

Abstract base class for TrackerSamplerAlgorithm that represents the algorithm for the specific sampler. More...

#include "tracker.hpp"

Inheritance diagram for cv::TrackerSamplerAlgorithm:
cv::TrackerSamplerCS cv::TrackerSamplerCSC cv::TrackerSamplerPF

Public Member Functions

virtual ~TrackerSamplerAlgorithm ()
 Destructor. More...
 
String getClassName () const
 Get the name of the specific TrackerSamplerAlgorithm. More...
 
bool sampling (const Mat &image, Rect boundingBox, std::vector< Mat > &sample)
 Computes the regions starting from a position in an image. More...
 

Static Public Member Functions

static Ptr< TrackerSamplerAlgorithmcreate (const String &trackerSamplerType)
 Create TrackerSamplerAlgorithm by tracker sampler type. More...
 

Protected Member Functions

virtual bool samplingImpl (const Mat &image, Rect boundingBox, std::vector< Mat > &sample)=0
 

Protected Attributes

String className
 

Detailed Description

Abstract base class for TrackerSamplerAlgorithm that represents the algorithm for the specific sampler.

Constructor & Destructor Documentation

§ ~TrackerSamplerAlgorithm()

virtual cv::TrackerSamplerAlgorithm::~TrackerSamplerAlgorithm ( )
virtual

Destructor.

Member Function Documentation

§ create()

static Ptr<TrackerSamplerAlgorithm> cv::TrackerSamplerAlgorithm::create ( const String trackerSamplerType)
static

Create TrackerSamplerAlgorithm by tracker sampler type.

Parameters
trackerSamplerTypeThe trackerSamplerType name

The modes available now:

  • "CSC" – Current State Center
  • "CS" – Current State

§ getClassName()

String cv::TrackerSamplerAlgorithm::getClassName ( ) const

Get the name of the specific TrackerSamplerAlgorithm.

§ sampling()

bool cv::TrackerSamplerAlgorithm::sampling ( const Mat image,
Rect  boundingBox,
std::vector< Mat > &  sample 
)

Computes the regions starting from a position in an image.

Return true if samples are computed, false otherwise

Parameters
imageThe current frame
boundingBoxThe bounding box from which regions can be calculated
sampleThe computed samples [158] Fig. 1 variable Sk

§ samplingImpl()

virtual bool cv::TrackerSamplerAlgorithm::samplingImpl ( const Mat image,
Rect  boundingBox,
std::vector< Mat > &  sample 
)
protectedpure virtual

Member Data Documentation

§ className

String cv::TrackerSamplerAlgorithm::className
protected

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