OpenCV453
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::face::StandardCollector クラス

Default predict collector [詳解]

#include <predict_collector.hpp>

cv::face::PredictCollectorを継承しています。

クラス

struct  PredictResult
 

公開メンバ関数

 StandardCollector (double threshold_=DBL_MAX)
 Constructor [詳解]
 
void init (size_t size) CV_OVERRIDE
 overloaded interface method [詳解]
 
bool collect (int label, double dist) CV_OVERRIDE
 overloaded interface method [詳解]
 
CV_WRAP int getMinLabel () const
 Returns label with minimal distance
 
CV_WRAP double getMinDist () const
 Returns minimal distance value
 
CV_WRAP std::vector< std::pair< int, double > > getResults (bool sorted=false) const
 Return results as vector [詳解]
 
std::map< int, double > getResultsMap () const
 Return results as map Labels are keys, values are minimal distances
 

静的公開メンバ関数

static CV_WRAP Ptr< StandardCollectorcreate (double threshold=DBL_MAX)
 Static constructor [詳解]
 

限定公開変数類

double threshold
 
PredictResult minRes
 
std::vector< PredictResultdata
 

詳解

Default predict collector

Trace minimal distance with treshhold checking (that is default behavior for most predict logic)

構築子と解体子

◆ StandardCollector()

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

Constructor

引数
threshold_set threshold

関数詳解

◆ collect()

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

overloaded interface method

cv::face::PredictCollectorを実装しています。

◆ create()

static CV_WRAP Ptr< StandardCollector > cv::face::StandardCollector::create ( double  threshold = DBL_MAX)
static

Static constructor

引数
thresholdset threshold

◆ getResults()

CV_WRAP std::vector< std::pair< int, double > > cv::face::StandardCollector::getResults ( bool  sorted = false) const

Return results as vector

引数
sortedIf set, results will be sorted by distance Each values is a pair of label and distance.

◆ init()

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

overloaded interface method

cv::face::PredictCollectorを再実装しています。


このクラス詳解は次のファイルから抽出されました: