mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
anonymous_namespace{LBPHFaceRecognizer_.cpp} Namespace Reference

Functions

Ptr< LBPHFaceRecognizercreate_LBPHFaceRecognizer (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of LBPHFaceRecognizer using options in arguments. More...
 
MxArray toStruct (const vector< pair< int, double > > &results)
 Convert results to struct array. More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< LBPHFaceRecognizer > > obj_
 Object container. More...
 

Function Documentation

◆ create_LBPHFaceRecognizer()

Ptr<LBPHFaceRecognizer> anonymous_namespace{LBPHFaceRecognizer_.cpp}::create_LBPHFaceRecognizer ( vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of LBPHFaceRecognizer using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created LBPHFaceRecognizer

Definition at line 27 of file LBPHFaceRecognizer_.cpp.

◆ toStruct()

MxArray anonymous_namespace{LBPHFaceRecognizer_.cpp}::toStruct ( const vector< pair< int, double > > &  results)

Convert results to struct array.

Parameters
resultsvector of pairs of label/distance
Returns
struct-array MxArray object

Definition at line 63 of file LBPHFaceRecognizer_.cpp.

Variable Documentation

◆ last_id

int anonymous_namespace{LBPHFaceRecognizer_.cpp}::last_id = 0

Last object id to allocate.

Definition at line 18 of file LBPHFaceRecognizer_.cpp.

◆ obj_

map<int,Ptr<LBPHFaceRecognizer> > anonymous_namespace{LBPHFaceRecognizer_.cpp}::obj_

Object container.

Definition at line 20 of file LBPHFaceRecognizer_.cpp.