![]() |
OpenCV
3.4.20
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. More... | |
void | train (GPCTrainingSamples &samples, const GPCTrainingParams params=GPCTrainingParams()) |
void | write (FileStorage &fs) const CV_OVERRIDE |
Stores algorithm parameters in a file storage. More... | |
![]() | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
Clears the algorithm state. More... | |
virtual bool | empty () const |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More... | |
virtual String | getDefaultName () const |
virtual void | save (const String &filename) const |
void | write (FileStorage &fs, const String &name) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
Static Public Member Functions | |
static Ptr< GPCTree > | create () |
![]() | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
Loads algorithm from the file. More... | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
Loads algorithm from a String. More... | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
Reads algorithm from the file node. More... | |
Additional Inherited Members | |
![]() | |
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.