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

mex interface for cv::ml::SVM More...

#include "mexopencv.hpp"
#include "mexopencv_ml.hpp"
#include "opencv2/ml.hpp"

Go to the source code of this file.

Classes

class  anonymous_namespace{SVM_.cpp}::MatlabFunction
 Represents custom kernel implemented as a MATLAB function. More...
 

Namespaces

 anonymous_namespace{SVM_.cpp}
 

Functions

ParamGrid anonymous_namespace{SVM_.cpp}::toParamGrid (const MxArray &m)
 Obtain ParamGrid object from MxArray. More...
 
void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 Main entry called from Matlab. More...
 

Variables

int anonymous_namespace{SVM_.cpp}::last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< SVM > > anonymous_namespace{SVM_.cpp}::obj_
 Object container. More...
 
const ConstMap< string, int > anonymous_namespace{SVM_.cpp}::SVMType
 Option values for SVM types. More...
 
const ConstMap< int, stringanonymous_namespace{SVM_.cpp}::InvSVMType
 Option values for inverse SVM types. More...
 
const ConstMap< string, int > anonymous_namespace{SVM_.cpp}::SVMKernelType
 Option values for SVM Kernel types. More...
 
const ConstMap< int, stringanonymous_namespace{SVM_.cpp}::InvSVMKernelType
 Option values for inverse SVM Kernel types. More...
 
const ConstMap< string, int > anonymous_namespace{SVM_.cpp}::SVMParamType
 Option values for SVM params grid types. More...
 

Detailed Description

mex interface for cv::ml::SVM

Author
Kota Yamaguchi, Amro
Date
2012, 2015

Definition in file SVM_.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 186 of file SVM_.cpp.