OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | List of all members
cv::face::MinDistancePredictCollector Class Reference

default predict collector that trace minimal distance with treshhold checking (that is default behavior for most predict logic) More...

#include "predict_collector.hpp"

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

Public Member Functions

 MinDistancePredictCollector (double threshhold=DBL_MAX)
 creates new MinDistancePredictCollector with given threshhold More...
 
bool emit (const int label, const double dist, const int state=0)
 called with every recognition result More...
 
double getDist () const
 result distance (confidence) DBL_MAX if not found More...
 
int getLabel () const
 result label, 0 if not found More...
 
- Public Member Functions inherited from cv::face::PredictCollector
 PredictCollector (double threshhold=DBL_MAX)
 creates new predict collector with given threshhold More...
 
virtual ~PredictCollector ()
 
virtual void init (const int size, const int state=0)
 called once at start of recognition More...
 

Static Public Member Functions

static Ptr< MinDistancePredictCollectorcreate (double threshold=DBL_MAX)
 factory method to create cv-pointers to MinDistancePredictCollector More...
 

Additional Inherited Members

- Protected Attributes inherited from cv::face::PredictCollector
int _size
 
int _state
 
double _threshhold
 

Detailed Description

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

Constructor & Destructor Documentation

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

creates new MinDistancePredictCollector with given threshhold

Member Function Documentation

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

factory method to create cv-pointers to MinDistancePredictCollector

bool cv::face::MinDistancePredictCollector::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 from cv::face::PredictCollector.

double cv::face::MinDistancePredictCollector::getDist ( ) const

result distance (confidence) DBL_MAX if not found

int cv::face::MinDistancePredictCollector::getLabel ( ) const

result label, 0 if not found


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