Class CudaConvolution
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
SizeBlock 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
IInputArraySource image. Only CV_32FC1 images are supported for now.
templ
IInputArrayTemplate image. The size is not greater than the image size. The type is the same as image .
result
IOutputArrayResult 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
boolFlags to evaluate cross-correlation instead of convolution.
stream
StreamStream for the asynchronous version
DisposeObject()
Release all the unmanaged memory associated with this object
protected override void DisposeObject()