#include <opencv2/ml.hpp>
|
| virtual void | calc (int vcount, int n, const float *vecs, const float *another, float *results)=0 |
| |
| virtual void | clear () |
| | Clears the algorithm state. More...
|
| |
| virtual bool | empty () const |
| | Returns true if the Algorithm is empty (e.g. More...
|
| |
| virtual String | getDefaultName () const |
| | Returns the algorithm string identifier. More...
|
| |
| virtual int | getType () const =0 |
| |
| virtual void | read (const FileNode &fn) |
| | Reads algorithm parameters from a file storage. More...
|
| |
| virtual void | save (const String &filename) const |
| | Saves the algorithm to a file. More...
|
| |
| virtual void | write (FileStorage &fs) const |
| | Stores algorithm parameters in a file storage. More...
|
| |
| void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| | simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
◆ calc()
| virtual void cv::ml::SVM::Kernel::calc |
( |
int |
vcount, |
|
|
int |
n, |
|
|
const float * |
vecs, |
|
|
const float * |
another, |
|
|
float * |
results |
|
) |
| |
|
pure virtual |
◆ clear()
| virtual void cv::Algorithm::clear |
( |
| ) |
|
|
inlinevirtualinherited |
◆ empty()
| virtual bool cv::Algorithm::empty |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getDefaultName()
| virtual String cv::Algorithm::getDefaultName |
( |
| ) |
const |
|
virtualinherited |
◆ getType()
| virtual int cv::ml::SVM::Kernel::getType |
( |
| ) |
const |
|
pure virtual |
◆ load()
◆ loadFromString()
template<typename _Tp >
| static Ptr<_Tp> cv::Algorithm::loadFromString |
( |
const String & |
strModel, |
|
|
const String & |
objname = String() |
|
) |
| |
|
inlinestaticinherited |
◆ read() [1/2]
| virtual void cv::Algorithm::read |
( |
const FileNode & |
fn | ) |
|
|
inlinevirtualinherited |
◆ read() [2/2]
template<typename _Tp >
| static Ptr<_Tp> cv::Algorithm::read |
( |
const FileNode & |
fn | ) |
|
|
inlinestaticinherited |
Reads algorithm from the file node.
This is static template method of Algorithm. It's usage is following (in the case of SVM):
Ptr<SVM> svm = Algorithm::read<SVM>(fsRead.root());
In order to make this method work, the derived class must overwrite Algorithm::read(const FileNode& fn) and also have static create() method without parameters (or with all the optional parameters)
◆ save()
| virtual void cv::Algorithm::save |
( |
const String & |
filename | ) |
const |
|
virtualinherited |
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
◆ write() [1/2]
| virtual void cv::Algorithm::write |
( |
FileStorage & |
fs | ) |
const |
|
inlinevirtualinherited |
◆ write() [2/2]
simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ writeFormat()
| void cv::Algorithm::writeFormat |
( |
FileStorage & |
fs | ) |
const |
|
protectedinherited |
The documentation for this class was generated from the following file: