OpenCV
3.4.3
Open Source Computer Vision
|
TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL. More...
#include "tracker.hpp"
Classes | |
struct | Params |
Public Types | |
enum | { MODE_INIT_POS = 1, MODE_INIT_NEG = 2, MODE_TRACK_POS = 3, MODE_TRACK_NEG = 4, MODE_DETECT = 5 } |
Public Member Functions | |
TrackerSamplerCSC (const TrackerSamplerCSC::Params ¶meters=TrackerSamplerCSC::Params()) | |
Constructor. More... | |
~TrackerSamplerCSC () | |
void | setMode (int samplingMode) |
Set the sampling mode of TrackerSamplerCSC. More... | |
Public Member Functions inherited from cv::TrackerSamplerAlgorithm | |
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... | |
Protected Member Functions | |
bool | samplingImpl (const Mat &image, Rect boundingBox, std::vector< Mat > &sample) CV_OVERRIDE |
Additional Inherited Members | |
Static Public Member Functions inherited from cv::TrackerSamplerAlgorithm | |
static Ptr< TrackerSamplerAlgorithm > | create (const String &trackerSamplerType) |
Create TrackerSamplerAlgorithm by tracker sampler type. More... | |
Protected Attributes inherited from cv::TrackerSamplerAlgorithm | |
String | className |
TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL.
anonymous enum |
cv::TrackerSamplerCSC::TrackerSamplerCSC | ( | const TrackerSamplerCSC::Params & | parameters = TrackerSamplerCSC::Params() | ) |
Constructor.
parameters | TrackerSamplerCSC parameters TrackerSamplerCSC::Params |
cv::TrackerSamplerCSC::~TrackerSamplerCSC | ( | ) |
|
protectedvirtual |
Implements cv::TrackerSamplerAlgorithm.
void cv::TrackerSamplerCSC::setMode | ( | int | samplingMode | ) |
Set the sampling mode of TrackerSamplerCSC.
samplingMode | The sampling mode |
The modes are: