Start » Filter Reference » OpenCV » Image Filtering » cvErode

cvErode


Module: OpenCV

Erodes an image by using a specific structuring element.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inElement Region* Structuring element used for erosion. NIL value means that a 3 x 3 rectangular structuring element is used.
Input value
inAnchor Location* Position of the anchor within the element. The NIL value means that the anchor is at the element center.
Input value
inIterations Integer 0 - Number of times erosion is applied.
Input value
inBorderType CvBorderType Pixel extrapolation method.
Input value
inBorderValue Pixel* Border value in case of a constant border.
Output value
outDst Image Output image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must have pixel type different from Int8 and Int32 in cvErode.
DomainError Input image must not be empty in cvErode.

Complexity Level

This filter is available on Basic Complexity Level.