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, Nullable<Point> anchor = null, int iterations = 1 )
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. - 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.
See Also