OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::cuda::TemplateMatching 类参考抽象

模板匹配的基类。 : 更多...

#include <opencv2/cudaimgproc.hpp>

cv::cuda::TemplateMatching 的协作图

公共成员函数

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< _Tpload (const String &filename, const String &objname=String())
 从文件中加载算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 从字符串加载算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 从文件节点读取算法。
 
- 从 cv::Algorithm 继承的保护成员函数
void writeFormat (FileStorage &fs) const
 

详细描述

模板匹配的基类。

成员函数文档

◆ match()

virtual void cv::cuda::TemplateMatching::match ( InputArray image,
InputArray templ,
OutputArray result,
Stream & stream = Stream::Null() )
纯虚函数

计算栅格模板与图像的邻近度图,其中在图像中搜索模板。

参数
image源图像。
templ模板图像,其大小和类型与 `image` 相同。
result包含比较结果的映射(CV_32FC1)。如果 `image` 是 W x H 且 `templ` 是 w x h,则 `result` 必须是 W-w+1 x H-h+1
Stream 用于异步版本。

此类的文档是从以下文件生成的