![]() |
OpenCV 4.10.0
开源计算机视觉
|
模板匹配的基类:更多...
#include <opencv2/cudaimgproc.hpp>
公有成员函数 | |
| virtual void | match (InputArray image, InputArray templ, OutputArray result, Stream &stream=Stream::Null())=0 |
| 计算光栅模板和搜索模板的图像的邻近图。 | |
从 cv::Algorithm 继承的公有成员函数 | |
| Algorithm () | |
| virtual | ~Algorithm () |
| virtual void | clear () |
| 清除算法状态。 | |
| virtual bool | empty () const |
| 如果 Algorithm 为空(例如在最初或读取不成功后),则返回 true。 | |
| virtual String | getDefaultName () const |
| virtual void | read (const FileNode &fn) |
| 从文件存储区读取算法参数。 | |
| virtual void | save (const String &filename) const |
| void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| virtual void | write (FileStorage &fs) const |
| 将算法参数存储在文件存储区中。 | |
| void | write (FileStorage &fs, const String &name) const |
其他继承的成员 | |
从 cv::Algorithm 继承的静态公有成员函数 | |
| template<typename _Tp > | |
| static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
| 从文件中加载算法。 | |
| template<typename _Tp > | |
| static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
| 从字符串中加载算法。 | |
| template<typename _Tp > | |
| static Ptr< _Tp > | read (const FileNode &fn) |
| 从文件节点读取算法。 | |
从 cv::Algorithm 继承的受保护成员函数 | |
| void | writeFormat (FileStorage &fs) const |
模板匹配的基类。
|
纯虚函数 |
计算光栅模板和搜索模板的图像的邻近图。
| image | 源图像。 |
| templ | 模板图像,大小和类型与 image 相同。 |
| result | 包含比较结果的映射(CV_32FC1)。如果 image 是 W x H,templ 是 w x h,则 result 必须是 W-w+1 x H-h+1。 |
| stream | Stream 用于异步版本。 |
1.9.8