![]() |
OpenCV 4.12.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 用于异步版本。 |