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

卷积(或互相关)运算符的基类。: 更多...

#include <opencv2/cudaarithm.hpp>

cv::cuda::Convolution 的协作图

公共成员函数

virtual void convolve (InputArray image, InputArray templ, OutputArray result, bool ccorr=false, 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
 

详细描述

卷积(或互相关)运算符的基类。

成员函数文档

◆ convolve()

virtual void cv::cuda::Convolution::convolve ( InputArray image,
InputArray templ,
OutputArray result,
bool ccorr = false,
Stream & stream = Stream::Null() )
纯虚函数

计算两个图像的卷积(或互相关)。

参数
image源图像。目前仅支持 CV_32FC1 图像。
templ模板图像。大小不大于图像大小。类型与图像相同。
result结果图像。如果图像为 W x H,模板为 w x h,则结果必须为 W-w+1 x H-h+1
ccorr指示评估互相关而非卷积的标志。
用于异步版本的 Stream

此类的文档生成自以下文件