OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::face::PredictCollector Class Reference

Abstract base class for all strategies of prediction result handling. More...

#include "predict_collector.hpp"

Inheritance diagram for cv::face::PredictCollector:
cv::face::MinDistancePredictCollector

Public Member Functions

 PredictCollector (double threshhold=DBL_MAX)
 creates new predict collector with given threshhold More...
 
virtual ~PredictCollector ()
 
virtual bool emit (const int label, const double dist, const int state=0)
 called with every recognition result More...
 
virtual void init (const int size, const int state=0)
 called once at start of recognition More...
 

Protected Attributes

int _size
 
int _state
 
double _threshhold
 

Detailed Description

Abstract base class for all strategies of prediction result handling.

Constructor & Destructor Documentation

cv::face::PredictCollector::PredictCollector ( double  threshhold = DBL_MAX)
inline

creates new predict collector with given threshhold

virtual cv::face::PredictCollector::~PredictCollector ( )
inlinevirtual

Member Function Documentation

virtual bool cv::face::PredictCollector::emit ( const int  label,
const double  dist,
const int  state = 0 
)
virtual

called with every recognition result

Parameters
labelcurrent prediction label
distcurrent prediction distance (confidence)
stateuser defined send-to-back optional value to allow multi-thread, multi-session or aggregation scenarios
Returns
true if recognizer should proceed prediction , false - if recognizer should terminate prediction

Reimplemented in cv::face::MinDistancePredictCollector.

virtual void cv::face::PredictCollector::init ( const int  size,
const int  state = 0 
)
virtual

called once at start of recognition

Parameters
sizetotal size of prediction evaluation that recognizer could perform
stateuser defined send-to-back optional value to allow multi-thread, multi-session or aggregation scenarios

Member Data Documentation

int cv::face::PredictCollector::_size
protected
int cv::face::PredictCollector::_state
protected
double cv::face::PredictCollector::_threshhold
protected

The documentation for this class was generated from the following file: