OpenCV 4.11.0
开源计算机视觉
|
管理采样器以选择区域来更新跟踪器模型的类 [AAM] 采样和标记。参见表 I 和 III B 节。更多...
#include <opencv2/tracking/tracking_internals.hpp>
公共成员函数 | |
TrackerContribSampler () | |
构造函数。 | |
~TrackerContribSampler () | |
析构函数。 | |
bool | addTrackerSamplerAlgorithm (Ptr< TrackerContribSamplerAlgorithm > &sampler) |
bool | addTrackerSamplerAlgorithm (String trackerSamplerAlgorithmType) |
向集合中添加TrackerContribSamplerAlgorithm。如果添加了采样器,则返回 true,否则返回 false。 | |
const std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > & | getSamplers () const |
返回TrackerContribSamplerAlgorithm 的集合。 | |
const std::vector< Mat > & | getSamples () const |
返回所有 TrackerContribSamplerAlgorithm 的样本,[232] 图 1 变量 Sk。 | |
void | sampling (const Mat &image, Rect boundingBox) |
从图像中的位置开始计算区域。 | |
cv::detail::tracking::TrackerContribSampler::TrackerContribSampler | ( | ) |
构造函数。
cv::detail::tracking::TrackerContribSampler::~TrackerContribSampler | ( | ) |
析构函数。
bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm | ( | Ptr< TrackerContribSamplerAlgorithm > & | sampler | ) |
这是一个重载的成员函数,为了方便提供。它与上面的函数的区别仅在于它接受的参数。
sampler | TrackerContribSamplerAlgorithm |
bool cv::detail::tracking::TrackerContribSampler::addTrackerSamplerAlgorithm | ( | String | trackerSamplerAlgorithmType | ) |
向集合中添加TrackerContribSamplerAlgorithm。如果添加了采样器,则返回 true,否则返回 false。
trackerSamplerAlgorithmType | TrackerContribSamplerAlgorithm 名称 |
当前可用的模式
示例 TrackerContribSamplerAlgorithm::addTrackerContribSamplerAlgorithm:
const std::vector< std::pair< String, Ptr< TrackerContribSamplerAlgorithm > > > & cv::detail::tracking::TrackerContribSampler::getSamplers | ( | ) | const |
const std::vector< Mat > & cv::detail::tracking::TrackerContribSampler::getSamples | ( | ) | const |
返回所有 TrackerContribSamplerAlgorithm 的样本,[232] 图 1 变量 Sk。
void cv::detail::tracking::TrackerContribSampler::sampling | ( | const Mat & | 图像 (image), |
矩形 (Rect) | boundingBox ) |
从图像中的位置开始计算区域。
图像 (image) | 当前帧 |
边界框 (boundingBox) | 可以计算区域的边界框 |