Table of Contents

Class CudaConvolution

Namespace
Emgu.CV.Cuda
Assembly
Emgu.CV.dll

Base class for convolution (or cross-correlation) operator.

public class CudaConvolution : SharedPtrObject, IDisposable
Inheritance
CudaConvolution
Implements
Inherited Members

Constructors

CudaConvolution(Size)

Create a Cuda Convolution object.

public CudaConvolution(Size userBlockSize = default)

Parameters

userBlockSize Size

Block size. If you leave default value Size(0,0) then automatic estimation of block size will be used (which is optimized for speed). By varying user_block_size you can reduce memory requirements at the cost of speed.

Methods

Convolve(IInputArray, IInputArray, IOutputArray, bool, Stream)

Computes a convolution (or cross-correlation) of two images.

public void Convolve(IInputArray image, IInputArray templ, IOutputArray result, bool ccorr, Stream stream = null)

Parameters

image IInputArray

Source image. Only CV_32FC1 images are supported for now.

templ IInputArray

Template image. The size is not greater than the image size. The type is the same as image .

result IOutputArray

Result image. If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.

ccorr bool

Flags to evaluate cross-correlation instead of convolution.

stream Stream

Stream for the asynchronous version

DisposeObject()

Release all the unmanaged memory associated with this object

protected override void DisposeObject()