MatDilate Method OpenCvSharp Class Library
Dilates an image by using a specific structuring element.

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

public Mat Dilate(
	InputArray element,
	Nullable<Point> anchor = null,
	int iterations = 1,
	BorderType borderType = BorderType.Constant,
	Nullable<Scalar> borderValue = null
)

Parameters

element
Type: OpenCvSharp.CPlusPlusInputArray
The structuring element used for dilation. If element=new Mat() , a 3x3 rectangular structuring element is used
anchor (Optional)
Type: SystemNullablePoint
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
The number of times dilation is applied. [By default this is 1]
borderType (Optional)
Type: OpenCvSharpBorderType
The pixel extrapolation method. [By default this is BorderType.Constant]
borderValue (Optional)
Type: SystemNullableScalar
The border value in case of a constant border. The default value has a special meaning. [By default this is CvCpp.MorphologyDefaultBorderValue()]

Return Value

Type: Mat
The destination image. It will have the same size and the same type as src
See Also

Reference