Table of Contents

Method Erode

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Erode(InputArray, OutputArray, InputArray, bool, Point?)

Erodes an run-length encoded binary image by using a specific structuring element.

public static void Erode(InputArray rlSrc, OutputArray rlDest, InputArray rlKernel, bool bBoundaryOn = true, Point? anchor = null)

Parameters

rlSrc InputArray

input image

rlDest OutputArray

result

rlKernel InputArray

kernel

bBoundaryOn bool

indicates whether pixel outside the image boundary are assumed to be on (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.