mexopencv  3.4.1
MEX interface for OpenCV library
Namespaces | Functions | Variables
Facemark_.cpp File Reference

mex interface for cv::face::Facemark, cv::face::FacemarkLBF, cv::face::FacemarkAAM More...

#include "mexopencv.hpp"
#include "opencv2/face.hpp"

Go to the source code of this file.

Namespaces

 anonymous_namespace{Facemark_.cpp}
 

Functions

bool anonymous_namespace{Facemark_.cpp}::matlab_face_detector (InputArray image_, OutputArray faces_, void *userData)
 Custom face detector implemented as a MATLAB function. More...
 
FacemarkAAM::Config anonymous_namespace{Facemark_.cpp}::MxArrayToConfig (const MxArray &arr, mwIndex idx=0)
 Convert an MxArray to cv::face::FacemarkAAM::Config. More...
 
vector< FacemarkAAM::Config > anonymous_namespace{Facemark_.cpp}::MxArrayToVectorConfig (const MxArray &arr)
 Convert an MxArray to std::vector<cv::face::FacemarkAAM::Config> More...
 
Ptr< FacemarkLBFanonymous_namespace{Facemark_.cpp}::createFacemarkLBF (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FacemarkLBF using options in arguments. More...
 
Ptr< FacemarkAAManonymous_namespace{Facemark_.cpp}::createFacemarkAAM (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of FacemarkAAM using options in arguments. More...
 
Ptr< Facemarkanonymous_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. More...
 
void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 Main entry called from Matlab. More...
 

Variables

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

Detailed Description

mex interface for cv::face::Facemark, cv::face::FacemarkLBF, cv::face::FacemarkAAM

Author
Amro
Date
2018

Definition in file Facemark_.cpp.

Function Documentation

◆ mexFunction()

void mexFunction ( int  nlhs,
mxArray plhs[],
int  nrhs,
const mxArray prhs[] 
)

Main entry called from Matlab.

mexFunction is the user-defined C routine that is called upon invocation of a MEX-function.

Parameters
nlhsnumber of left-hand-side arguments
plhspointers to mxArrays in the left-hand-side
nrhsnumber of right-hand-side arguments
prhspointers to mxArrays in the right-hand-side

Definition at line 224 of file Facemark_.cpp.