![]() |
OpenCV 4.11.0
开源计算机视觉
|
单个树的类。 更多…
#include <opencv2/optflow/sparse_matching_gpc.hpp>
类 | |
| 结构体 | Node(节点) |
公有成员函数 | |
| 无符号 | findLeafForPatch (const GPCPatchDescriptor &descr) const |
| int | getDescriptorType () const |
| bool | operator== (const GPCTree &t) const |
| void | read (const FileNode &fn) CV_OVERRIDE |
| 从文件存储中读取算法参数。 | |
| void | train (GPCTrainingSamples &samples, const GPCTrainingParams params=GPCTrainingParams()) |
| void | write (FileStorage &fs) const CV_OVERRIDE |
| 将算法参数存储到文件存储中。 | |
从 cv::Algorithm 继承的公有成员函数 | |
| Algorithm(算法) () | |
| 虚 | ~Algorithm () |
| 虚 void | clear () |
| 清除算法状态。 | |
| 虚 bool | empty () const |
| 如果 Algorithm 为空(例如,在开始时或读取失败后),则返回 true。 | |
| 虚 String | getDefaultName () const |
| 虚 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 Ptr< GPCTree > | create () |
从 cv::Algorithm 继承的静态公有成员函数 | |
| 模板<typename _Tp > | |
| static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
| 从文件中加载算法。 | |
| 模板<typename _Tp > | |
| static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
| 从字符串加载算法。 | |
| 模板<typename _Tp > | |
| static Ptr< _Tp > | read (const FileNode &fn) |
| 从文件节点读取算法。 | |
其他继承的成员 | |
从 cv::Algorithm 继承的保护成员函数 | |
| void | writeFormat (FileStorage &fs) const |
单个树的类。
| unsigned cv::optflow::GPCTree::findLeafForPatch | ( | const GPCPatchDescriptor & | descr | ) | const |
|
inline |
|
inline |
|
虚 |
从文件存储中读取算法参数。
从 cv::Algorithm 重实现。
| void cv::optflow::GPCTree::train | ( | GPCTrainingSamples & | samples, |
| const GPCTrainingParams | params = GPCTrainingParams() ) |
|
虚 |
将算法参数存储到文件存储中。
从 cv::Algorithm 重实现。