Cv2GpuMorphologyEx Method (GpuMat, GpuMat, MorphologyOperation, Mat, GpuMat, GpuMat, NullablePoint, Int32, Stream) OpenCvSharp Class Library
Applies an advanced morphological operation to an image.

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

public static void MorphologyEx(
	GpuMat src,
	GpuMat dst,
	MorphologyOperation op,
	Mat kernel,
	GpuMat buf1,
	GpuMat buf2,
	Nullable<Point> anchor = null,
	int iterations = 1,
	Stream stream = null
)

Parameters

src
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Source image. CV_8UC1 and CV_8UC4 source types are supported.
dst
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Destination image with the same size and type as src.
op
Type: OpenCvSharpMorphologyOperation
Type of morphological operation
kernel
Type: OpenCvSharp.CPlusPlusMat
Structuring element.
buf1
Type: OpenCvSharp.CPlusPlus.GpuGpuMat

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

buf2
Type: OpenCvSharp.CPlusPlus.GpuGpuMat

[Missing <param name="buf2"/> documentation for "M:OpenCvSharp.CPlusPlus.Gpu.Cv2Gpu.MorphologyEx(OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.MorphologyOperation,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Gpu.GpuMat,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 Point(-1, -1) means that the anchor is at the element center.
iterations (Optional)
Type: SystemInt32
Number of times erosion and dilation to be applied.
stream (Optional)
Type: OpenCvSharp.CPlusPlus.GpuStream
Stream for the asynchronous version.
See Also

Reference