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

Functions

Ptr< BasicFaceRecognizercreate_BasicFaceRecognizer (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of BasicFaceRecognizer 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< BasicFaceRecognizer > > obj_
 Object container. More...
 

Function Documentation

◆ create_BasicFaceRecognizer()

Ptr<BasicFaceRecognizer> anonymous_namespace{BasicFaceRecognizer_.cpp}::create_BasicFaceRecognizer ( const string type,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of BasicFaceRecognizer using options in arguments.

Parameters
typeface recognizer type, one of:
  • "Eigenfaces"
  • "Fisherfaces"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created BasicFaceRecognizer

Definition at line 30 of file BasicFaceRecognizer_.cpp.

◆ toStruct()

MxArray anonymous_namespace{BasicFaceRecognizer_.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 68 of file BasicFaceRecognizer_.cpp.

Variable Documentation

◆ last_id

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

Last object id to allocate.

Definition at line 18 of file BasicFaceRecognizer_.cpp.

◆ obj_

map<int,Ptr<BasicFaceRecognizer> > anonymous_namespace{BasicFaceRecognizer_.cpp}::obj_

Object container.

Definition at line 20 of file BasicFaceRecognizer_.cpp.