Class cv::face::StandardCollector#

Default predict collector. View details

Collaboration diagram for cv::face::StandardCollector:

cv::face::StandardCollector Node1 cv::face::StandardCollector   + StandardCollector() + collect() + getMinDist() + getMinLabel() + getResults() + getResultsMap() + init() + create() Node2 cv::face::PredictCollector   + ~PredictCollector() + collect() + init() Node2->Node1 Node3 double     Node3->Node1 #threshold Node4 cv::face::StandardCollector ::PredictResult   + PredictResult() Node3->Node4 +distance Node4->Node1 #minRes Node6 std::vector< cv::face ::StandardCollector:: PredictResult >     Node4->Node6 +elements Node5 int     Node5->Node4 +label Node6->Node1 #data Node7 std::vector< T >     Node7->Node6 < cv::face::StandardCollector ::PredictResult > Node8 T     Node8->Node7 +elements

cv::face::StandardCollector Node1 cv::face::StandardCollector   + StandardCollector() + collect() + getMinDist() + getMinLabel() + getResults() + getResultsMap() + init() + create() Node2 cv::face::PredictCollector   + ~PredictCollector() + collect() + init() Node2->Node1 Node3 double     Node3->Node1 #threshold Node4 cv::face::StandardCollector ::PredictResult   + PredictResult() Node3->Node4 +distance Node4->Node1 #minRes Node6 std::vector< cv::face ::StandardCollector:: PredictResult >     Node4->Node6 +elements Node5 int     Node5->Node4 +label Node6->Node1 #data Node7 std::vector< T >     Node7->Node6 < cv::face::StandardCollector ::PredictResult > Node8 T     Node8->Node7 +elements

Public Member Functions#

Public Member Functions inherited from cv::face::PredictCollector

Return

Name

Description

~PredictCollector()

bool

collect(
    int label,
    double dist )

Interface method called by face recognizer for each result.

void

init(size_t size)

Interface method called by face recognizer before results processing.

Detailed Description#

Default predict collector.

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

Constructor & Destructor Documentation#

StandardCollector()#

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

Constructor.

Parameters

  • threshold_ — set threshold

Member Function Documentation#

collect()#

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

overloaded interface method

getMinDist()#

double cv::face::StandardCollector::getMinDist()

Returns minimal distance value.

getMinLabel()#

int cv::face::StandardCollector::getMinLabel()

Returns label with minimal distance.

getResults()#

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

Return results as vector.

Parameters

  • sorted — If set, results will be sorted by distance Each values is a pair of label and distance.

getResultsMap()#

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

Return results as map Labels are keys, values are minimal distances.

init()#

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

overloaded interface method

create()#

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

Static constructor.

Parameters

  • threshold — set threshold

Member Data Documentation#

data#

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

minRes#

PredictResult cv::face::StandardCollector::minRes

threshold#

double cv::face::StandardCollector::threshold

Source file#

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