OpenCV  4.9.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::detail::tracking::TrackerContribSamplerAlgorithm Class Referenceabstract

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

#include <opencv2/tracking/tracking_internals.hpp>

Inheritance diagram for cv::detail::tracking::TrackerContribSamplerAlgorithm:
cv::detail::tracking::TrackerSamplerAlgorithm cv::detail::tracking::TrackerContribSamplerCSC cv::detail::tracking::TrackerSamplerCS cv::detail::tracking::TrackerSamplerPF

Public Member Functions

virtual ~TrackerContribSamplerAlgorithm ()
 Destructor. More...
 
String getClassName () const
 Get the name of the specific TrackerContribSamplerAlgorithm. More...
 
virtual bool sampling (const Mat &image, const Rect &boundingBox, std::vector< Mat > &sample) CV_OVERRIDE
 Computes the regions starting from a position in an image. More...
 
- Public Member Functions inherited from cv::detail::tracking::TrackerSamplerAlgorithm
virtual ~TrackerSamplerAlgorithm ()
 

Static Public Member Functions

static Ptr< TrackerContribSamplerAlgorithmcreate (const String &trackerSamplerType)
 Create TrackerContribSamplerAlgorithm 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 TrackerContribSamplerAlgorithm that represents the algorithm for the specific sampler.

Constructor & Destructor Documentation

◆ ~TrackerContribSamplerAlgorithm()

virtual cv::detail::tracking::TrackerContribSamplerAlgorithm::~TrackerContribSamplerAlgorithm ( )
virtual

Destructor.

Member Function Documentation

◆ create()

static Ptr<TrackerContribSamplerAlgorithm> cv::detail::tracking::TrackerContribSamplerAlgorithm::create ( const String trackerSamplerType)
static

Create TrackerContribSamplerAlgorithm by tracker sampler type.

Parameters
trackerSamplerTypeThe trackerSamplerType name

The modes available now:

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

◆ getClassName()

String cv::detail::tracking::TrackerContribSamplerAlgorithm::getClassName ( ) const

Get the name of the specific TrackerContribSamplerAlgorithm.

◆ sampling()

virtual bool cv::detail::tracking::TrackerContribSamplerAlgorithm::sampling ( const Mat image,
const Rect boundingBox,
std::vector< Mat > &  sample 
)
virtual

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 [227] Fig. 1 variable Sk

Implements cv::detail::tracking::TrackerSamplerAlgorithm.

◆ samplingImpl()

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

Member Data Documentation

◆ className

String cv::detail::tracking::TrackerContribSamplerAlgorithm::className
protected

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