OpenCV
4.5.1
Open Source Computer Vision
|
TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL. More...
#include <opencv2/video/detail/tracking.private.hpp>
Classes | |
struct | Params |
Public Types | |
enum | MODE { 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 () | |
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... | |
void | setMode (int samplingMode) |
Set the sampling mode of TrackerSamplerCSC. More... | |
Public Member Functions inherited from cv::detail::tracking::TrackerSamplerAlgorithm | |
virtual | ~TrackerSamplerAlgorithm () |
TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL.
cv::detail::tracking::TrackerSamplerCSC::~TrackerSamplerCSC | ( | ) |
cv::detail::tracking::TrackerSamplerCSC::TrackerSamplerCSC | ( | const TrackerSamplerCSC::Params & | parameters = TrackerSamplerCSC::Params() | ) |
Constructor.
parameters | TrackerSamplerCSC parameters TrackerSamplerCSC::Params |
|
virtual |
Computes the regions starting from a position in an image.
Return true if samples are computed, false otherwise
image | The current frame |
boundingBox | The bounding box from which regions can be calculated |
sample | The computed samples [203] Fig. 1 variable Sk |
Implements cv::detail::tracking::TrackerSamplerAlgorithm.
void cv::detail::tracking::TrackerSamplerCSC::setMode | ( | int | samplingMode | ) |
Set the sampling mode of TrackerSamplerCSC.
samplingMode | The sampling mode |
The modes are: