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

Functions

bool matlab_face_detector (InputArray image_, OutputArray faces_, void *userData)
 Custom face detector implemented as a MATLAB function. More...
 
FacemarkAAM::Config MxArrayToConfig (const MxArray &arr, mwIndex idx=0)
 Convert an MxArray to cv::face::FacemarkAAM::Config. More...
 
vector< FacemarkAAM::Config > MxArrayToVectorConfig (const MxArray &arr)
 Convert an MxArray to std::vector<cv::face::FacemarkAAM::Config> More...
 
Ptr< FacemarkLBFcreateFacemarkLBF (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FacemarkLBF using options in arguments. More...
 
Ptr< FacemarkAAMcreateFacemarkAAM (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FacemarkAAM using options in arguments. More...
 
Ptr< FacemarkcreateFacemark (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of Facemark using options in arguments. More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< Facemark > > obj_
 Object container. More...
 
string func
 name of MATLAB function to evaluate (custom face detector) More...
 

Function Documentation

◆ createFacemark()

Ptr<Facemark> anonymous_namespace{Facemark_.cpp}::createFacemark ( const string type,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of Facemark using options in arguments.

Parameters
typefacemark algorithm, one of:
  • "LBF"
  • "AAM"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created cv::face::Facemark

Definition at line 198 of file Facemark_.cpp.

◆ createFacemarkAAM()

Ptr<FacemarkAAM> anonymous_namespace{Facemark_.cpp}::createFacemarkAAM ( vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of FacemarkAAM 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 cv::face::FacemarkAAM

Definition at line 153 of file Facemark_.cpp.

◆ createFacemarkLBF()

Ptr<FacemarkLBF> anonymous_namespace{Facemark_.cpp}::createFacemarkLBF ( vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of FacemarkLBF 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 cv::face::FacemarkLBF

Definition at line 94 of file Facemark_.cpp.

◆ matlab_face_detector()

bool anonymous_namespace{Facemark_.cpp}::matlab_face_detector ( InputArray  image_,
OutputArray  faces_,
void *  userData 
)

Custom face detector implemented as a MATLAB function.

Parameters
image_input image.
faces_output faces.
userDataoptional user-specified parameters (unused here)
Returns
success flag.

Definition at line 29 of file Facemark_.cpp.

◆ MxArrayToConfig()

FacemarkAAM::Config anonymous_namespace{Facemark_.cpp}::MxArrayToConfig ( const MxArray arr,
mwIndex  idx = 0 
)

Convert an MxArray to cv::face::FacemarkAAM::Config.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
config object

Definition at line 58 of file Facemark_.cpp.

◆ MxArrayToVectorConfig()

vector<FacemarkAAM::Config> anonymous_namespace{Facemark_.cpp}::MxArrayToVectorConfig ( const MxArray arr)

Convert an MxArray to std::vector<cv::face::FacemarkAAM::Config>

Parameters
arrstruct-array MxArray object
Returns
vector of config objects

Definition at line 72 of file Facemark_.cpp.

Variable Documentation

◆ func

string anonymous_namespace{Facemark_.cpp}::func

name of MATLAB function to evaluate (custom face detector)

Definition at line 21 of file Facemark_.cpp.

◆ last_id

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

Last object id to allocate.

Definition at line 17 of file Facemark_.cpp.

◆ obj_

map<int,Ptr<Facemark> > anonymous_namespace{Facemark_.cpp}::obj_

Object container.

Definition at line 19 of file Facemark_.cpp.