9 #include "opencv2/ml.hpp" 24 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
30 vector<MxArray> rhs(prhs, prhs+nrhs);
33 int num_samples = rhs[0].toInt(),
34 num_features = rhs[1].toInt(),
35 num_classes = rhs[2].toInt();
36 Mat samples, responses;
37 createConcentricSpheresTestSet(num_samples, num_features, num_classes,
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.