OpenCV  3.1.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

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

Destructor.

Member Function Documentation

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
String cv::TrackerSamplerAlgorithm::getClassName ( ) const

Get the name of the specific TrackerSamplerAlgorithm.

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 [124] Fig. 1 variable Sk
virtual bool cv::TrackerSamplerAlgorithm::samplingImpl ( const Mat image,
Rect  boundingBox,
std::vector< Mat > &  sample 
)
protectedpure virtual

Member Data Documentation

String cv::TrackerSamplerAlgorithm::className
protected

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