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

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

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

Go to the source code of this file.

Namespaces

 anonymous_namespace{KNearest_.cpp}
 

Functions

void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 Main entry called from Matlab. More...
 

Variables

int anonymous_namespace{KNearest_.cpp}::last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< KNearest > > anonymous_namespace{KNearest_.cpp}::obj_
 Object container. More...
 
const ConstMap< std::string, int > anonymous_namespace{KNearest_.cpp}::KNNAlgType
 Option values for KNearest algorithm type. More...
 
const ConstMap< int, std::stringanonymous_namespace{KNearest_.cpp}::InvKNNAlgType
 Option values for inverse KNearest algorithm type. More...
 

Detailed Description

mex interface for cv::ml::KNearest

Author
Kota Yamaguchi, Amro
Date
2012, 2015

Definition in file KNearest_.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 40 of file KNearest_.cpp.