Cv2MorphologyEx Method OpenCvSharp Class Library
Performs advanced morphological transformations

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

public static void MorphologyEx(
	InputArray src,
	OutputArray dst,
	MorphologyOperation op,
	InputArray element,
	Nullable<CvPoint> anchor = null,
	int iterations = 1,
	BorderType borderType = BorderType.Constant,
	Nullable<CvScalar> borderValue = null
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
Source image
dst
Type: OpenCvSharp.CPlusPlusOutputArray
Destination image. It will have the same size and the same type as src
op
Type: OpenCvSharpMorphologyOperation
Type of morphological operation
element
Type: OpenCvSharp.CPlusPlusInputArray
Structuring element
anchor (Optional)
Type: SystemNullableCvPoint
Position of the 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 and dilation are applied. [By default this is 1]
borderType (Optional)
Type: OpenCvSharpBorderType
The pixel extrapolation method. [By default this is BorderType.Constant]
borderValue (Optional)
Type: SystemNullableCvScalar
The border value in case of a constant border. The default value has a special meaning. [By default this is CvCpp.MorphologyDefaultBorderValue()]
See Also

Reference