9 #include "opencv2/shape.hpp"    20 void mexFunction(
int nlhs, mxArray *plhs[], 
int nrhs, 
const mxArray *prhs[])
    26     vector<MxArray> rhs(prhs, prhs+nrhs);
    29     Mat signature1(rhs[0].toMat(CV_32F)),
    30         signature2(rhs[1].toMat(CV_32F));
    31     float d = EMDL1(signature1, signature2);
 
mxArray object wrapper for data conversion and manipulation. 
 
void nargchk(bool cond)
Alias for input/ouput arguments number check. 
 
Global constant definitions. 
 
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.