Loading...
Searching...
No Matches
cv::detail::tracking::TrackerSamplerCS Class Reference
TrackerContribSampler based on CS (current state), used by algorithm TrackerBoosting. More...
#include <opencv2/tracking/tracking_internals.hpp>
Inheritance diagram for cv::detail::tracking::TrackerSamplerCS:

Classes | |
struct | Params |
Public Types | |
enum | { MODE_POSITIVE = 1 , MODE_NEGATIVE = 2 , MODE_CLASSIFY = 3 } |
Public Member Functions | |
TrackerSamplerCS (const TrackerSamplerCS::Params ¶meters=TrackerSamplerCS::Params()) | |
Constructor. | |
~TrackerSamplerCS () | |
Rect | getROI () const |
bool | samplingImpl (const Mat &image, Rect boundingBox, std::vector< Mat > &sample) CV_OVERRIDE |
void | setMode (int samplingMode) |
Set the sampling mode of TrackerSamplerCS. | |
![]() | |
virtual | ~TrackerContribSamplerAlgorithm () |
Destructor. | |
String | getClassName () const |
Get the name of the specific TrackerContribSamplerAlgorithm. | |
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. | |
![]() | |
virtual | ~TrackerSamplerAlgorithm () |
virtual bool | sampling (const Mat &image, const Rect &boundingBox, std::vector< Mat > &sample)=0 |
Computes the regions starting from a position in an image. | |
Additional Inherited Members | |
![]() | |
static Ptr< TrackerContribSamplerAlgorithm > | create (const String &trackerSamplerType) |
Create TrackerContribSamplerAlgorithm by tracker sampler type. | |
virtual bool | samplingImpl (const Mat &image, Rect boundingBox, std::vector< Mat > &sample)=0 |
![]() | |
String | className |
Detailed Description
TrackerContribSampler based on CS (current state), used by algorithm TrackerBoosting.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Constructor & Destructor Documentation
◆ TrackerSamplerCS()
cv::detail::tracking::TrackerSamplerCS::TrackerSamplerCS | ( | const TrackerSamplerCS::Params & | parameters = TrackerSamplerCS::Params() | ) |
Constructor.
- Parameters
-
parameters TrackerSamplerCS parameters TrackerSamplerCS::Params
◆ ~TrackerSamplerCS()
cv::detail::tracking::TrackerSamplerCS::~TrackerSamplerCS | ( | ) |
Member Function Documentation
◆ getROI()
Rect cv::detail::tracking::TrackerSamplerCS::getROI | ( | ) | const |
◆ samplingImpl()
◆ setMode()
void cv::detail::tracking::TrackerSamplerCS::setMode | ( | int | samplingMode | ) |
Set the sampling mode of TrackerSamplerCS.
- Parameters
-
samplingMode The sampling mode
The modes are:
- "MODE_POSITIVE = 1" – for the positive sampling
- "MODE_NEGATIVE = 2" – for the negative sampling
- "MODE_CLASSIFY = 3" – for the sampling in classification step
The documentation for this class was generated from the following file:
- opencv2/tracking/tracking_internals.hpp