Table of Contents

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

rlSrc InputArray

input image

rlDest OutputArray

result

op MorphTypes

all operations supported by cv::morphologyEx (except cv::MORPH_HITMISS)

rlKernel InputArray

kernel

bBoundaryOnForErosion bool

indicates 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)

anchor Point?

position of the anchor within the element; default value (0, 0) is usually the element center.