OpenCV
4.10.0-dev
Open Source Computer Vision
|
Class for individual tree. More...
#include <opencv2/optflow/sparse_matching_gpc.hpp>
Classes | |
struct | Node |
Public Member Functions | |
unsigned | findLeafForPatch (const GPCPatchDescriptor &descr) const |
int | getDescriptorType () const |
bool | operator== (const GPCTree &t) const |
void | read (const FileNode &fn) CV_OVERRIDE |
Reads algorithm parameters from a file storage. | |
void | train (GPCTrainingSamples &samples, const GPCTrainingParams params=GPCTrainingParams()) |
void | write (FileStorage &fs) const CV_OVERRIDE |
Stores algorithm parameters in a file storage. | |
Public Member Functions inherited from cv::Algorithm | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
Clears the algorithm state. | |
virtual bool | empty () const |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
virtual String | getDefaultName () const |
virtual void | save (const String &filename) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
void | write (FileStorage &fs, const String &name) const |
Static Public Member Functions | |
static Ptr< GPCTree > | create () |
Static Public Member Functions inherited from cv::Algorithm | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
Loads algorithm from the file. | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
Loads algorithm from a String. | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
Reads algorithm from the file node. | |
Additional Inherited Members | |
Protected Member Functions inherited from cv::Algorithm | |
void | writeFormat (FileStorage &fs) const |
Class for individual tree.
unsigned cv::optflow::GPCTree::findLeafForPatch | ( | const GPCPatchDescriptor & | descr | ) | const |
|
inline |
|
inline |
|
virtual |
Reads algorithm parameters from a file storage.
Reimplemented from cv::Algorithm.
void cv::optflow::GPCTree::train | ( | GPCTrainingSamples & | samples, |
const GPCTrainingParams | params = GPCTrainingParams() |
||
) |
|
virtual |
Stores algorithm parameters in a file storage.
Reimplemented from cv::Algorithm.