Method MorphologyEx
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
MorphologyEx(InputArray, OutputArray, MorphTypes, InputArray, bool, Point?)
Applies a morphological operation to a run-length encoded binary image.
public static void MorphologyEx(InputArray rlSrc, OutputArray rlDest, MorphTypes op, InputArray rlKernel, bool bBoundaryOnForErosion = true, Point? anchor = null)
Parameters
rlSrcInputArrayinput image
rlDestOutputArrayresult
opMorphTypesall operations supported by cv::morphologyEx (except cv::MORPH_HITMISS)
rlKernelInputArraykernel
bBoundaryOnForErosionboolindicates whether pixel outside the image boundary are assumed to be on for erosion operations (True: works in the same way as the default of cv::erode, False: is a little faster)
anchorPoint?position of the anchor within the element; default value (0, 0) is usually the element center.