19 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
25 vector<MxArray> rhs(prhs, prhs+nrhs);
28 Mat src(rhs[0].toMat()), dst;
29 Mat lowerb(rhs[1].toMat()), upperb(rhs[2].toMat());
30 inRange(src, lowerb, upperb, dst);
31 plhs[0] =
MxArray(dst, mxLOGICAL_CLASS);
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
Global constant definitions.