OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::face::StandardCollector 类参考

默认预测收集器。 更多...

#include <opencv2/face/predict_collector.hpp>

cv::face::StandardCollector 的协作图

结构体  PredictResult
 

公共成员函数

 StandardCollector (double threshold_=DBL_MAX)
 构造函数。
 
bool collect (int label, double dist) CV_OVERRIDE
 重载接口方法
 
double getMinDist () const
 返回最小距离值。
 
int getMinLabel () const
 返回具有最小距离的标签。
 
std::vector< std::pair< int, double > > getResults (bool sorted=false) const
 以向量形式返回结果。
 
std::map< int, double > getResultsMap () const
 以 map 形式返回结果。 标签是键,值是最小距离。
 
void init (size_t size) CV_OVERRIDE
 重载接口方法
 
- 从 cv::face::PredictCollector 继承的公共成员函数
virtual ~PredictCollector ()
 

静态公共成员函数

static Ptr< StandardCollectorcreate (double threshold=DBL_MAX)
 静态构造函数。
 

保护属性

std::vector< PredictResultdata
 
PredictResult minRes
 
double RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。
 

详细描述

默认预测收集器。

跟踪具有阈值检查的最小距离(这是大多数预测逻辑的默认行为)

构造函数 & 析构函数文档

◆ StandardCollector()

cv::face::StandardCollector::StandardCollector ( double threshold_ = DBL_MAX)

构造函数。

参数
threshold_设置阈值

成员函数文档

◆ collect()

bool cv::face::StandardCollector::collect ( int label,
double dist )
virtual

重载接口方法

实现 cv::face::PredictCollector

◆ create()

static Ptr< StandardCollector > cv::face::StandardCollector::create ( double threshold = DBL_MAX)
static
Python
cv.face.StandardCollector.create([, threshold]) -> retval
cv.face.StandardCollector_create([, threshold]) -> retval

静态构造函数。

参数
RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。设置阈值

◆ getMinDist()

double cv::face::StandardCollector::getMinDist ( ) const
Python
cv.face.StandardCollector.getMinDist() -> retval

返回最小距离值。

◆ getMinLabel()

int cv::face::StandardCollector::getMinLabel ( ) const
Python
cv.face.StandardCollector.getMinLabel() -> retval

返回具有最小距离的标签。

◆ getResults()

std::vector< std::pair< int, double > > cv::face::StandardCollector::getResults ( bool sorted = false) const
Python
cv.face.StandardCollector.getResults([, sorted]) -> retval

以向量形式返回结果。

参数
sorted如果设置,结果将按距离排序。 每个值都是标签和距离的对。

◆ getResultsMap()

std::map< int, double > cv::face::StandardCollector::getResultsMap ( ) const

以 map 形式返回结果。 标签是键,值是最小距离。

◆ init()

void cv::face::StandardCollector::init ( size_t size)
virtual

重载接口方法

cv::face::PredictCollector 重新实现。

成员数据文档

◆ data

std::vector<PredictResult> cv::face::StandardCollector::data
保护

◆ minRes

PredictResult cv::face::StandardCollector::minRes
保护

◆ threshold

double cv::face::StandardCollector::threshold
保护

此类的文档由以下文件生成