mexopencv
3.4.1
MEX interface for OpenCV library
|
Represents custom kernel implemented as a MATLAB function. More...
Public Member Functions | |
MatlabFunction (const string &func) | |
Constructor. More... | |
void | calc (int vcount, int n, const float *vecs, const float *another, float *results) |
Evaluates MATLAB kernel function. More... | |
int | getType () const |
Return type of SVM formulation. More... | |
Public Member Functions inherited from cv::Algorithm | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
virtual bool | empty () const |
virtual String | getDefaultName () const |
virtual void | read (const FileNode &fn) |
virtual void | save (const String &filename) const |
virtual void | write (FileStorage &fs) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
Static Public Member Functions | |
static Ptr< MatlabFunction > | create (const string &func) |
Factory function. More... | |
Static Public Member Functions inherited from cv::Algorithm | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
static Ptr< _Tp > | read (const FileNode &fn) |
Additional Inherited Members | |
Protected Member Functions inherited from cv::Algorithm | |
void | writeFormat (FileStorage &fs) const |
|
inlineexplicit |
|
inlinevirtual |
Evaluates MATLAB kernel function.
[in] | vcount | number of samples |
[in] | n | length of each sample |
[in] | vecs | input array of length vcount*n |
[in] | another | input array of length n |
[out] | results | output array of length vcount |
Calculates results(i) = K(vecs(i,:), another)
, for i=1:vcount
(where each sample is of length n
).
Implements cv::ml::SVM::Kernel.
|
inlinestatic |
|
inlinevirtual |