Method Erode
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Erode(InputArray, OutputArray, InputArray, Point?, int, BorderTypes, Scalar?)
Erodes an image by using a specific structuring element.
public static void Erode(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 erosion is applied
borderTypeBorderTypesThe pixel extrapolation method
borderValueScalar?The border value in case of a constant border. The default value has a special meaning. [By default this is CvCpp.MorphologyDefaultBorderValue()]