OpenCV
4.1.0
Open Source Computer Vision
|
TrackerSampler based on CS (current state), used by algorithm TrackerBoosting. More...
#include <opencv2/tracking/tracker.hpp>
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. | |
Public Member Functions inherited from cv::TrackerSamplerAlgorithm | |
virtual | ~TrackerSamplerAlgorithm () |
Destructor. | |
String | getClassName () const |
Get the name of the specific TrackerSamplerAlgorithm. | |
bool | sampling (const Mat &image, Rect boundingBox, std::vector< Mat > &sample) |
Computes the regions starting from a position in an image. | |
Additional Inherited Members | |
Static Public Member Functions inherited from cv::TrackerSamplerAlgorithm | |
static Ptr < TrackerSamplerAlgorithm > | create (const String &trackerSamplerType) |
Create TrackerSamplerAlgorithm by tracker sampler type. | |
Protected Attributes inherited from cv::TrackerSamplerAlgorithm | |
String | className |
TrackerSampler based on CS (current state), used by algorithm TrackerBoosting.
anonymous enum |
cv::TrackerSamplerCS::TrackerSamplerCS | ( | const TrackerSamplerCS::Params & | parameters = TrackerSamplerCS::Params() | ) |
Constructor.
parameters | TrackerSamplerCS parameters TrackerSamplerCS::Params |
cv::TrackerSamplerCS::~TrackerSamplerCS | ( | ) |
Rect cv::TrackerSamplerCS::getROI | ( | ) | const |
|
virtual |
Implements cv::TrackerSamplerAlgorithm.
void cv::TrackerSamplerCS::setMode | ( | int | samplingMode | ) |
Set the sampling mode of TrackerSamplerCS.
samplingMode | The sampling mode |
The modes are: