Cv2GpuErode Method (GpuMat, GpuMat, Mat, GpuMat, NullablePoint, Int32, Stream) OpenCvSharp Class Library
Erodes an image by using a specific structuring element.

Namespace:  OpenCvSharp.CPlusPlus.Gpu
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Erode(
	GpuMat src,
	GpuMat dst,
	Mat kernel,
	GpuMat buf,
	Nullable<Point> anchor = null,
	int iterations = 1,
	Stream stream = null
)

Parameters

src
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Source image. Only CV_8UC1 and CV_8UC4 types are supported.
dst
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Destination image with the same size and type as src.
kernel
Type: OpenCvSharp.CPlusPlusMat
Structuring element used for erosion. If kernel=Mat(), a 3x3 rectangular structuring element is used.
buf
Type: OpenCvSharp.CPlusPlus.GpuGpuMat

[Missing <param name="buf"/> documentation for "M:OpenCvSharp.CPlusPlus.Gpu.Cv2Gpu.Erode(OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Gpu.GpuMat,System.Nullable{OpenCvSharp.CPlusPlus.Point},System.Int32,OpenCvSharp.CPlusPlus.Gpu.Stream)"]

anchor (Optional)
Type: SystemNullablePoint
Position of an anchor within the element. The default value (-1, -1) means that the anchor is at the element center.
iterations (Optional)
Type: SystemInt32
Number of times erosion to be applied.
stream (Optional)
Type: OpenCvSharp.CPlusPlus.GpuStream
Stream for the asynchronous version.
See Also

Reference