Method Dilate
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Dilate(InputArray, OutputArray, InputArray, Point?, int, BorderTypes, Scalar?)
Dilates an image by using a specific structuring element.
public static void Dilate(InputArray src, OutputArray dst, InputArray element, Point? anchor = null, int iterations = 1, BorderTypes borderType = BorderTypes.Constant, Scalar? borderValue = null)
Parameters
srcInputArrayThe source image
dstOutputArrayThe destination image. It will have the same size and the same type as src
elementInputArrayThe structuring element used for dilation. If element=new Mat() , a 3x3 rectangular structuring element is used
anchorPoint?Position of the anchor within the element. The default value (-1, -1) means that the anchor is at the element center
iterationsintThe number of times dilation is applied. [By default this is 1]
borderTypeBorderTypesThe pixel extrapolation method. [By default this is BorderType.Constant]
borderValueScalar?The border value in case of a constant border. The default value has a special meaning. [By default this is CvCpp.MorphologyDefaultBorderValue()]