Class CudaLinearFilter
Applies arbitrary linear filter to the image. In-place operation is supported. When the aperture is partially outside the image, the function interpolates outlier pixel values from the nearest pixels that is inside the image
public class CudaLinearFilter : CudaFilter, IDisposable
- Inheritance
-
CudaLinearFilter
- Implements
- Inherited Members
Constructors
CudaLinearFilter(DepthType, int, DepthType, int, IInputArray, Point, BorderType, MCvScalar)
Create a Gpu LinearFilter
public CudaLinearFilter(DepthType srcDepth, int srcChannels, DepthType dstDepth, int dstChannels, IInputArray kernel, Point anchor, BorderType borderType = BorderType.Default, MCvScalar borderValue = default)
Parameters
srcDepth
DepthTypeThe depth type of the source image
srcChannels
intThe number of channels in the source image
dstDepth
DepthTypeThe depth type of the dest image
dstChannels
intThe number of channels in the dest image
kernel
IInputArrayConvolution kernel, single-channel floating point matrix (e.g. Emgu.CV.Matrix). If you want to apply different kernels to different channels, split the gpu image into separate color planes and process them individually
anchor
PointThe anchor of the kernel that indicates the relative position of a filtered point within the kernel. The anchor shoud lie within the kernel. The special default value (-1,-1) means that it is at the kernel center
borderType
BorderTypeBorder type. Use REFLECT101 as default.
borderValue
MCvScalarThe border value