Method MorphologyEx
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
MorphologyEx(InputArray, OutputArray, MorphTypes, InputArray, Point?, int, BorderTypes, Scalar?)
Performs advanced morphological transformations
public static void MorphologyEx(InputArray src, OutputArray dst, MorphTypes op, InputArray element, Point? anchor = null, int iterations = 1, BorderTypes borderType = BorderTypes.Constant, Scalar? borderValue = null)
Parameters
srcInputArraySource image
dstOutputArrayDestination image. It will have the same size and the same type as src
opMorphTypesType of morphological operation
elementInputArrayStructuring element
anchorPoint?Position of the anchor within the element. The default value (-1, -1) means that the anchor is at the element center
iterationsintNumber of times erosion and dilation are 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()]